Datepicker
A production-scale, light + dark Datepicker component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add datepickerLive preview available in the gallery.
Usage
import { Datepicker } from "@lerpa/ui";
<Datepicker />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | Date | null | — | |
| defaultValue | Date | null | — | |
| onChange | (date: Date) => void | — | |
| minDate | Date | — | |
| maxDate | Date | — | |
| isDateDisabled | (date: Date) => boolean | — | |
| placeholder | string | — | |
| weekStartsOn | 0 | 1 | — | |
| locale | string | — | |
| disabled | boolean | — | |
| id | string | — | |
| name | string | — | |
| className | string | — | |
| contentClassName | string | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.