Hextech UI

Date Pickers

Live example

Date Pickers

Training

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/date-picker.json

API reference

These are the main Date Pickers options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
value / defaultValueISO day (DatePicker); DateRange (DateRangePicker)—
labelstring (required)—
open / defaultOpenbooleanfalse
isDateUnavailable(ISO day) => boolean—

Selection and popup

Use value and onValueChange for controlled dates and open with onOpenChange when controlling the popup. Use ISO Gregorian dates and mark unavailable days explicitly. The calendar popup keeps the surrounding light or dark theme.