Overview
Calendar · DatePicker input · DateRangePicker · 4 variants · presets · time picker
Default date picker
Use a date picker when people benefit from choosing a date from calendar context.
Choose the date when work must be complete
Use explicit labels and preserve the selected date in a locale-appropriate format. Use DateRangePicker when the task requires both a start and end date.
Anatomy
- Root container and spacing boundary.
- Primary content and optional secondary metadata.
- State indicators and utility affordances (icons, badges, controls).
- Optional helper text, grouping, and behavioral wrappers.
When to use
- Choose DatePicker when a repeated, structured interaction is required.
- Use it for clear, consistent operations across similar surfaces.
- Use in forms, lists, and action workflows where clarity matters.
When not to use
- Do not use only for decorative layout without interaction meaning.
- Avoid duplicating the same behavior without distinct user context.
- Prefer simpler HTML or textual content for static, non-interactive labels.
Variants
Component variants should be documented by API props and examples below.
States
Common states include idle, active, disabled, focused, and loading/pending states where applicable.
Behavior
Behavior should remain deterministic and keyboard-friendly, with clear visual feedback for every state transition.
Accessibility
- Use semantic structure and visible labels whenever possible.
- Preserve keyboard navigation and focus visibility.
- Announce status and changes when context requires it.
Content guidelines
- Prefer short, clear labels.
- Keep content actions scannable and outcome-oriented.
- Use consistent wording across similar components.
Examples
Calendar variants
Four visual styles: default, dark, gradient, and minimal
default
dark
gradient
minimal
With quick presets
quickPresets adds shortcut buttons beside the calendar
DatePicker input
Dropdown-based date picker — with helper text, error, required, and disabled states
Select the project start date
Please select a due date
DatePicker with presets
quickPresets prop adds shortcut buttons inside the dropdown
Sizes
sm, md (default), and lg trigger heights
States
Default, error, disabled, disable weekends, and min date
Invalid date
Date + time
showTime adds a time picker below the calendar grid
Date range picker
DateRangePicker for selecting a start and end date — dualMonth shows two months
Calendar props
DatePicker props
DateRangePicker props
Props / API
Api Props
Props