Date picker preview
Choose a date with a native input and calendar.
pro · Forms · primitive
When to use
- Use it when a product interface needs choose a date with a native input and calendar.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than date picker.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/date-pickerImport components/ui/tidal.css, components/ui/date-picker.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/date-picker.css";
import{TidalDatePicker}from"./components/ui/date-picker";
export default()=><div className="tidal-scope"><TidalDatePicker label={"Demo"} onValueChange={() => {}} value={"value"}/></div>;API and props
TidalDateDigits.text (required)stringRequired text value accepted by this exported component.
TidalDatePicker.label (required)stringRequired label value accepted by this exported component.
TidalDatePicker.onValueChange (required)(value: string | null) => voidCallback invoked when the value change interaction is proposed.
TidalDatePicker.value (required)string | nullRequired value value accepted by this exported component.
TidalDatePicker.clearableboolean | undefinedOptional clearable value accepted by this exported component.
TidalDatePicker.descriptionstring | undefinedOptional description value accepted by this exported component.
TidalDatePicker.dir"ltr" | "rtl" | undefinedOptional dir value accepted by this exported component.
TidalDatePicker.errorstring | undefinedOptional error value accepted by this exported component.
TidalDatePicker.isDateDisabled((iso: string) => boolean) | undefinedOptional is date disabled value accepted by this exported component.
TidalDatePicker.labelsPartial<{ open: string; clear: string; previous: string; next: string; month: string; year: string; today: string; close: string; unavailable: string; invalid: string; instructions: string; yearRange: (minimum: number, maximum: number) => string; }> | undefinedOptional labels value accepted by this exported component.
TidalDatePicker.localestring | undefinedOptional locale value accepted by this exported component.
TidalDatePicker.maxstring | undefinedOptional max value accepted by this exported component.
TidalDatePicker.minstring | undefinedOptional min value accepted by this exported component.
TidalDatePicker.rootClassNamestring | undefinedOptional root class name value accepted by this exported component.
TidalDatePicker.showTodayboolean | undefinedOptional show today value accepted by this exported component.
TidalDatePicker.theme"light" | "dark" | undefinedOptional theme value accepted by this exported component.
TidalDatePicker.todaystring | undefinedOptional today value accepted by this exported component.
TidalDatePicker.weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 6 | undefinedOptional week starts on value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Keep field state, validation results, submission, and persistence in the host form workflow.