Date Picker

A composable date picker and date range picker built on Popover, Button, and Calendar.

Loading...

Installation

$npx shadcn@latest add @craftdotui/craftui-date-picker

Anatomy

<DatePicker value={date} onValueChange={setDate} />
<DatePicker.Root value={date} onValueChange={setDate} />
<DateRangePicker value={range} onValueChange={setRange} />

Demo

Range

Loading...

With Presets

Loading...

With Dropdowns

Loading...

Props

DatePickerRoot

Prop
Type
Default

DateRangePicker

Prop
Type
Default