Skip to content
fabrials/ ui

Interaction

Date range

Native date fields and an accessible calendar, working in tandem.

Installation

Terminal
bunx shadcn@latest add https://ui.fabrials.com/r/date-range.json

API

Prop / exportTypeDescription
value{from: string; to: string}Calendar dates in YYYY-MM-DD format.
onChange(range) => voidControlled selection.
minstring?Earliest selectable date.
requiredbooleanRequire native date fields.

Behavior & compatibility

Dates represent calendar days without timezone conversion. Validate the full range again in your action handler.

Accessibility

Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is fully keyboard operable.