Date Picker

React date picker component with interactive calendar, time picker, year and month dropdowns, min/max limits, and date-of-birth presets

import { DatePicker } from "@plexui/ui/components/DatePicker";

Examples

Overview

Limits

Date of birth

Time picker

Two fields

Date input

DateTime input

Without Icon

Disabled

Reference

PropTypeDefaultDescription
valueDateTime | nullSelected date (luxon)
onChange(date: DateTime | null) => voidCalled when date changes
minDateTimeMinimum selectable date
maxDateTimeMaximum selectable date
captionLayout"buttons" | "dropdown""buttons"Calendar header mode. Use dropdown for date of birth
showTimebooleanfalseShow time input below calendar
yearRange[number, number]Min/max years for dropdown caption
sizestringTrigger size
pillbooleanRounded trigger
clearablebooleanShow clear button
triggerShowIconbooleantrueShow calendar icon
triggerDateFormatstring"MM/dd/yy"Date format in trigger. Auto-includes time when showTime is enabled
placeholderstringTrigger placeholder
disabledbooleanDisable picker