DatePicker
Date selection input using native date control with DS token styling and monospace font
import { DatePicker } from "@nodus/design-system"Demo coming soon
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Date value in YYYY-MM-DD format |
onChange | (value: string) => void | — | Value change handler |
label | string | — | Input label |
error | string | — | Error message |
hint | string | — | Help text |
valueType
stringDefault —Date value in YYYY-MM-DD format
onChangeType
(value: string) => voidDefault —Value change handler
labelType
stringDefault —Input label
errorType
stringDefault —Error message
hintType
stringDefault —Help text
Accessibility
- Uses native <input type="date"> for maximum accessibility
- Label association via htmlFor/id
- Error state via aria-describedby + aria-invalid
Design Rationale
This component was designed to express:
Explore Related
Was this helpful?