Date Picker
A component that allows users to select a date from a calendar.
Examples
Please select your preferred arrival date.
import { DatePicker } from 'kalki-design'
<DatePicker>Click me</DatePicker>Installation
npx kalki-design add datepickerUsage
import { DatePicker } from 'kalki-design'
export default function Example() {
return <DatePicker />
}API Reference
| Name | Type | Default | Description |
|---|---|---|---|
Namevalue | TypeDate | null | Default— | DescriptionThe selected date. |
NameonChange | Type(date: Date | null) => void | Default— | DescriptionCallback when date is selected. |
Nameplaceholder | Typestring | Default'Select date' | DescriptionPlaceholder for empty state. |
Namelabel | Typestring | Default— | DescriptionInput label element. |
NamehelperText | Typestring | Default— | DescriptionInstructive text below the field. |
Nameerror | Typestring | boolean | Default— | DescriptionError message and styling trigger. |
Namedisabled | Typeboolean | Defaultfalse | DescriptionWhether the picker is intractable. |
Namesize | Type'sm' | 'md' | 'lg' | Default'md' | DescriptionTrigger dimensions height. |