Lucent UI
MultiSelectDatePickerDateRangePicker
✦ LLM-ready

DatePicker

atom

Controlled date input that opens a calendar popover. Supports label, helperText, errorText, three sizes, min/max constraints, and border-box sizing matching Input/Select.

"Add a controlled DatePicker from lucent-ui bound to a useState hook. Include min/max constraints and a clear placeholder."

Usage

React / JSX
import { DatePicker } from 'lucent-ui'

<DatePicker placeholder="Select date" label="DatePicker" size="md" />

Installation

pnpm add lucent-ui

API Reference

DatePicker props — * required

PropTypeDefaultDescription
valueDateControlled Date object.
defaultValueDateUncontrolled initial Date value.
onChange(date: Date) => voidCalled with the selected Date object.
placeholderstring"Select date"Placeholder text when no date is selected.
labelstringLabel displayed above the picker.
helperTextstringHint or description below the picker.
errorTextstringError message — triggers the error visual state with aria-invalid.
size"sm" | "md" | "lg""md"Height and font size — matches Input sizing.
disabledbooleanfalseDisables the input.
minDateMinimum selectable date.
maxDateMaximum selectable date.
styleReact.CSSPropertiesInline styles for the wrapper.