DatePicker
Outline or ghost trigger for a date, a range, or a date and a time: a calendar popover with presets, and time slot lists that show each duration.
Installation
Install DatePicker from the Fluid Effect UI registry.
Playground
1h 45min
November 2026
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
December 2026
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Date
Opens on the selected day or today. Choosing a day closes the picker.
November 2026
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Range with presets
Pick a start and an end, or choose a preset. Escape restores the previous range.
Date and time
Type a time or use the arrow keys to choose a slot. The end list shows the duration from the start.
1h 45min
November 2026
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Use time for one time and step to set the minutes between slots.
November 2026
| Su | Mo | Tu | We | Th | Fr | Sa |
|---|---|---|---|---|---|---|
Booked days
Pass booked and min to mark booked nights and disable past days.
API Reference
Types come from the public API. A dash indicates no default is documented here.
DatePicker props
Public source| Prop | Type | Default |
|---|---|---|
key | string | Required |
label | string | Required |
placeholder | string | 'Pick a date' |
variant | "outline" | "ghost" | — |
typeable | boolean | legacy |
clearable | boolean | — |
name | string | — |
time | string | null | — |
timeRange | { readonly start: string; readonly end: string; } | null | — |
step | number | 15 |
hourCycle | 24 | 12 | — |
onTimeChange | (time: string | null) => NoInfer<Msg> | — |
onTimeRangeChange | (range: TimeRange | null) => NoInfer<Msg> | — |
onClear | () => NoInfer<Msg> | — |
onPicked | (date: DateTime.Utc | null) => NoInfer<Msg> | Required |
onRequestedMonth | (month: DateTime.Utc) => NoInfer<Msg> | Required |
onRequestedOpen | (open: boolean, reason: DatePickerChangeReason) => NoInfer<Msg> | Required |
value | DateTime.Utc | DateTime.Zoned | null | Required |
open | boolean | Required |
month | DateTime.Utc | DateTime.Zoned | Required |
today | DateTime.Utc | DateTime.Zoned | Required |
form | string | undefined | — |
disabled | boolean | undefined | — |
required | boolean | undefined | — |
anchor | Show typestring | { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } | undefined | — |
side | "bottom" | "left" | "right" | "top" | "inline-start" | "inline-end" | undefined | — |
readOnly | boolean | undefined | — |
min | DateTime.Utc | DateTime.Zoned | undefined | — |
max | DateTime.Utc | DateTime.Zoned | undefined | — |
months | number | undefined | — |
firstDayOfWeek | 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined | (props.showWeekNumber ? 1 : undefined) |
locale | string | readonly string[] | undefined | ['en-US'] |
align | "end" | "start" | "center" | undefined | — |
sideOffset | number | undefined | — |
alignOffset | number | undefined | — |
collisionAvoidance | Show type{ readonly side?: "shift" | "none" | "flip" | undefined; readonly align?: "shift" | "none" | "flip" | undefined; readonly fallbackAxisSide?: "end" | "start" | "none" | undefined; } | undefined | — |
collisionBoundary | Show type"clipping-ancestors" | { readonly id: string; } | { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } | undefined | — |
collisionPadding | Show typenumber | { readonly bottom?: number | undefined; readonly left?: number | undefined; readonly right?: number | undefined; readonly top?: number | undefined; } | undefined | — |
sticky | boolean | undefined | — |
arrowPadding | number | undefined | — |
positionMethod | "fixed" | "absolute" | undefined | — |
disableAnchorTracking | boolean | undefined | — |
topLayer | boolean | undefined | — |
compact | boolean | false |
cellSize | number | — |
className | string | — |
reducedMotion | "user" | "always" | "never" | 'user' |
unavailable | (date: DateTime.Utc) => boolean | — |
booked | (date: DateTime.Utc) => boolean | — |
dayDetail | (date: DateTime.Utc) => Input<Msg, never> | — |
onDayPress | Msg | — |
showWeekNumber | boolean | — |
showOutsideDays | boolean | — |
orientation | "horizontal" | "vertical" | "auto" | undefined | — |
shape | "rounded" | "pill" | "sharp" | undefined | 'rounded' |
RangeDatePicker
Public source
| Prop | Type | Default | Description |
|---|---|---|---|
key | KeepAliveKey<K, Ends> | undefined | '' | The child's identity among its parent's children of one component, or a kept child's among its author's. The empty string by default. |
onEmit | Show type((events: { readonly _tag: "Committed"; readonly value: { readonly start: Utc; readonly end: Utc; }; } | { readonly _tag: "OpenChangeRequested"; readonly open: boolean; readonly reason: "cancel" | "trigger-press" | "apply" | "outside-press" | "escape-key" | "focus-out" | "close-press" | "trigger-hover" | "close-watcher"; }) => NoInfer<Msg> | undefined) | { readonly Committed: (event: { readonly _tag: "Committed"; readonly value: { readonly start: Utc; readonly end: Utc; }; }) => NoInfer<Msg> | undefined; readonly OpenChangeRequested: (event: { readonly _tag: "OpenChangeRequested"; readonly open: boolean; readonly reason: "cancel" | "trigger-press" | "apply" | "outside-press" | "escape-key" | "focus-out" | "close-press" | "trigger-hover" | "close-watcher"; }) => NoInfer<Msg> | undefined; } | undefined | — | Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event. |
props.label | string | Required | |
props.value | { readonly start: Utc; readonly end: Utc; } | null | Required | |
props.open | boolean | Required | |
props.today | Utc | Required | |
props.id | string | h.id('date-trigger') | |
props.disabled | boolean | false | |
props.reducedMotion | "user" | "always" | "never" | 'user' | |
props.compact | boolean | — | |
props.className | string | — | |
props.shape | "rounded" | "pill" | "sharp" | 'rounded' | |
props.name | string | — | |
props.readOnly | boolean | false | |
props.placeholder | string | Varies
| |
props.variant | "outline" | "ghost" | — | |
props.orientation | "horizontal" | "vertical" | "auto" | — | |
props.min | Utc | — | |
props.max | Utc | — | |
props.months | number | 2 | |
props.firstDayOfWeek | 0 | 1 | 2 | 3 | 4 | 5 | 6 | (h.props.showWeekNumber ? 1 : undefined) | |
props.locale | string | 'en-US' | |
props.iconOnly | boolean | — | |
props.cellSize | number | — | |
props.booked | readonly Utc[] | — | |
props.showWeekNumber | boolean | — | |
props.commitOnSelection | boolean | — | |
props.typeable | boolean | — | |
props.triggerTooltip | string | Varies
| |
props.presets | Show typereadonly { readonly id: string; readonly label: string; readonly value: { readonly start: Utc; readonly end: Utc; }; }[] | — | |
slots | SC & CheckedSlots<"clear", SC, NoInfer<Msg>> | — |