Date Picker
Styled date input that shares the same foundation as Calendar.
Usage
import {DatePicker} from 'kinu';
<DatePicker />
Exports
| Name | Description | Rendered HTML |
|---|---|---|
| DatePicker | Date input | <input k="date-picker"> |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | `string | number | readonly string[] |
| onChange | (event: Event) => void |
— | Change handler for date input. |
| disabled | boolean |
— | Disable the input. |
| name | string |
— | Input name used for form submissions. |
Notes
- Sets type="date" for you and forwards all native input props.
- Pairs nicely with popovers if you need a custom calendar shell.
_Source: src/components/date-picker/index.tsx