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 | nullDefault—DescriptionThe selected date.
NameonChangeType(date: Date | null) => voidDefault—DescriptionCallback when date is selected.
NameplaceholderTypestringDefault'Select date'DescriptionPlaceholder for empty state.
NamelabelTypestringDefault—DescriptionInput label element.
NamehelperTextTypestringDefault—DescriptionInstructive text below the field.
NameerrorTypestring | booleanDefault—DescriptionError message and styling trigger.
NamedisabledTypebooleanDefaultfalseDescriptionWhether the picker is intractable.
NamesizeType'sm' | 'md' | 'lg'Default'md'DescriptionTrigger dimensions height.