Date Picker
A button that opens a calendar popover for picking a single date.
import { DatePicker } from '@jbpark/ui-kit';
<DatePicker onChange={date => console.log(date)} />;
Selected: none
Props
| Prop | Type | Default |
|---|---|---|
value | Date | - |
defaultValue | Date | - |
placeholder | string | 'Pick a date' |
disabled | boolean | - |
onChange | (date: Date | undefined) => void | - |
className | string | - |
Works both controlled (pass value + onChange) and uncontrolled (pass
defaultValue, or neither).