Ship-It Designv0.0.3
GitHub

DatePicker

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Loading…

Standalone Calendar#

Loading…

Props#

Props for DatePicker
PropTypeDefaultDescription
valueDate | undefined
defaultValueDate | undefined
onValueChange((value: Date) => void) | undefined
placeholderstring | undefinedPick a date
format((date: Date) => string) | undefined(d: Date) => d.toLocaleDateString()Format the selected date for display. Default: `toLocaleDateString()`.
isDateDisabled((date: Date) => boolean) | undefinedOptional disable predicate forwarded to Calendar.
widthstring | number | undefined200Pixel width of the trigger button. Default 200.
disabledboolean | undefined
emptyLabelReactNodeContent for the trigger when no date is selected. Defaults to `placeholder`.
aria-labelstring | undefined
idstring | undefined
namestring | undefined