Skip to content
GitHub

Date Picker

A popover date picker with an input and calendar.

Installation

Usage

Examples

Input

Use DatePickerInput for a text input with calendar icon that opens the date picker.

Range

Select a date range with selectionMode="range".

Time

Use <DatePickerTimer /> for time selection.

With Presets

Add quick single-date presets in a side panel.

Custom format

Customize the format of the presets using external date formatting library like date-fns.

API Reference

DatePicker

Root element. Extends Calendar.

DatePickerTrigger

Button that opens the date picker. button

DatePickerInput

Input with calendar icon that opens the date picker on click. input

DatePickerContent

Wraps the calendar. Inherits --cell-size from calendar for date cell sizing.

DatePickerValue

Displays the selected date(s) as text. Use inside DatePickerTrigger. span

DatePickerTimer

Time input for selecting hour and minute. Use alongside the calendar for date-time selection. input

DatePickerPresetTrigger

Quick preset button for dates. button


For a complete list of props, see the Ark UI documentation.