Documentation

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 datepicker

Usage

import { DatePicker } from 'kalki-design'

export default function Example() {
  return <DatePicker />
}

API Reference

NameTypeDefaultDescription
NamevalueTypeDate | nullDefaultDescriptionThe selected date.
NameonChangeType(date: Date | null) => voidDefaultDescriptionCallback when date is selected.
NameplaceholderTypestringDefault'Select date'DescriptionPlaceholder for empty state.
NamelabelTypestringDefaultDescriptionInput label element.
NamehelperTextTypestringDefaultDescriptionInstructive text below the field.
NameerrorTypestring | booleanDefaultDescriptionError message and styling trigger.
NamedisabledTypebooleanDefaultfalseDescriptionWhether the picker is intractable.
NamesizeType'sm' | 'md' | 'lg'Default'md'DescriptionTrigger dimensions height.