Date Picker

Standalone themeable date and time picker with portal popup calendar, editable text draft input, and customizable token styling.

// Plain markup
import { DatePicker } from "@shavin/ui";

DatePicker — date & time

Component Source
<DatePicker value={date} onChange={setDate} />

DatePicker — date only

Component Source
<DatePicker value={date} onChange={setDate} dateOnly />

Props Specification

PropTypeDefaultDescription
value*Date—Active selected Date object.
onChange*(d: Date) => void—Callback fired when Date changes.
dateOnlybooleanfalseHide time selection controls and close on day pick. Default false.
tokensPartial<DatePickerTokens>—Override any visual token; unspecified keys fall back to the theme.
classNamestring—Optional custom CSS class name.

* required

Configure Theme
Theme
Accent Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font