Date range picker preview
Choose start and end dates with linked calendars.
pro · Forms · primitive
When to use
- Use it when a product interface needs choose start and end dates with linked calendars.
- 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 range picker.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/date-range-pickerImport components/ui/tidal.css, components/ui/date-range-picker.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/date-range-picker.css";
import{TidalDateRangePicker}from"./components/ui/date-range-picker";
export default()=><div className="tidal-scope"><TidalDateRangePicker label={"Demo"} onValueChange={() => {}} value={{start:"value",end:"value"}}/></div>;API and props
TidalDateRangePicker.label (required)stringRequired label value accepted by this exported component.
TidalDateRangePicker.onValueChange (required)(range: TidalDateRange) => voidCallback invoked when the value change interaction is proposed.
TidalDateRangePicker.value (required)TidalDateRangeRequired value value accepted by this exported component.
TidalDateRangePicker.clearableboolean | undefinedOptional clearable value accepted by this exported component.
TidalDateRangePicker.descriptionstring | undefinedOptional description value accepted by this exported component.
TidalDateRangePicker.dir"ltr" | "rtl" | undefinedOptional dir value accepted by this exported component.
TidalDateRangePicker.endInputPropsDateInputProps | undefinedOptional end input props value accepted by this exported component.
TidalDateRangePicker.endLabelstring | undefinedOptional end label value accepted by this exported component.
TidalDateRangePicker.endRefRef<HTMLInputElement> | undefinedOptional end ref value accepted by this exported component.
TidalDateRangePicker.errorstring | undefinedOptional error value accepted by this exported component.
TidalDateRangePicker.isDateDisabled((iso: string) => boolean) | undefinedEndpoint availability. Interior dates are the consumer's isRangeDisabled responsibility.
TidalDateRangePicker.isRangeDisabled((range: TidalCompleteDateRange) => boolean) | undefinedOptional is range disabled value accepted by this exported component.
TidalDateRangePicker.labelsPartial<{ open: string; calendar: string; calendarTitle: string; shortcuts: string; clear: string; previous: string; next: string; month: string; year: string; apply: string; cancel: string; unavailable: string; instructions: string; chooseEnd: string; chooseStart: string; days: (count: number) => string; yearRange: (min: number, max: number) => string; }> | undefinedOptional labels value accepted by this exported component.
TidalDateRangePicker.localestring | undefinedOptional locale value accepted by this exported component.
TidalDateRangePicker.maxstring | undefinedOptional max value accepted by this exported component.
TidalDateRangePicker.maxDaysnumber | undefinedOptional max days value accepted by this exported component.
TidalDateRangePicker.messagesPartial<Record<TidalRangeIssue, string>> | undefinedOptional messages value accepted by this exported component.
TidalDateRangePicker.minstring | undefinedOptional min value accepted by this exported component.
TidalDateRangePicker.minDaysnumber | undefinedOptional min days value accepted by this exported component.
TidalDateRangePicker.months1 | "auto" | 2 | undefinedOptional months value accepted by this exported component.
TidalDateRangePicker.presetsArray<{ label: string; value: TidalCompleteDateRange; }> | undefinedOptional presets value accepted by this exported component.
TidalDateRangePicker.readOnlyboolean | undefinedOptional read only value accepted by this exported component.
TidalDateRangePicker.requiredboolean | undefinedOptional required value accepted by this exported component.
TidalDateRangePicker.startInputPropsDateInputProps | undefinedOptional start input props value accepted by this exported component.
TidalDateRangePicker.startLabelstring | undefinedOptional start label value accepted by this exported component.
TidalDateRangePicker.startRefRef<HTMLInputElement> | undefinedOptional start ref value accepted by this exported component.
TidalDateRangePicker.theme"light" | "dark" | undefinedOptional theme value accepted by this exported component.
TidalDateRangePicker.todaystring | undefinedOptional today value accepted by this exported component.
TidalDateRangePicker.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.