DatePicker

Allow users to select a Date and Time value.

The DatePicker is currently in beta, we'd love to hear your feedback while we finalize the API.

Import#

  • DatePickerStatic: The container component that manages state and context.
  • DatePickerCalendar: Calender showing available months and days.
  • DatePickerTimeField: Time field to allow users enter a time.
import {
DatePickerStatic,
DatePickerCalendar,
DatePickerTimeField,
} from '@saas-ui/date-picker'

Usage#

The DatePicker uses @internationalized/date to represent and manipulate dates. Check out the documentation to learn how to work with Date objects.

Basic#

Live edit

With time#

Live edit

With 24 hour time#

Live edit

Controlled#

Live edit

Controlled with zoned time#

Live edit

Was this helpful?