Date Picker
Standalone themeable date and time picker with portal popup calendar, editable text draft input, and customizable token styling.
// Plain markup
import { DatePicker } from "@shavin/ui";DatePicker — date & time
<DatePicker value={date} onChange={setDate} />DatePicker — date only
<DatePicker value={date} onChange={setDate} dateOnly />Props Specification
| Prop | Type | Default |
|---|---|---|
| value* | Date | — |
| onChange* | (d: Date) => void | — |
| dateOnly | boolean | — |
| tokens | Partial<DatePickerTokens> | — |
| className | string | — |
* required