TidalUI

Date picker preview

Choose a date with a native input and calendar.

pro · Forms · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/date-picker

Import components/ui/tidal.css, components/ui/date-picker.css. Wrap installed components in tidal-scope.

Preview

Date picker component preview

Open interactive 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)
string

Required text value accepted by this exported component.

TidalDatePicker.label (required)
string

Required label value accepted by this exported component.

TidalDatePicker.onValueChange (required)
(value: string | null) => void

Callback invoked when the value change interaction is proposed.

TidalDatePicker.value (required)
string | null

Required value value accepted by this exported component.

TidalDatePicker.clearable
boolean | undefined

Optional clearable value accepted by this exported component.

TidalDatePicker.description
string | undefined

Optional description value accepted by this exported component.

TidalDatePicker.dir
"ltr" | "rtl" | undefined

Optional dir value accepted by this exported component.

TidalDatePicker.error
string | undefined

Optional error value accepted by this exported component.

TidalDatePicker.isDateDisabled
((iso: string) => boolean) | undefined

Optional is date disabled value accepted by this exported component.

TidalDatePicker.labels
Partial<{ 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; }> | undefined

Optional labels value accepted by this exported component.

TidalDatePicker.locale
string | undefined

Optional locale value accepted by this exported component.

TidalDatePicker.max
string | undefined

Optional max value accepted by this exported component.

TidalDatePicker.min
string | undefined

Optional min value accepted by this exported component.

TidalDatePicker.rootClassName
string | undefined

Optional root class name value accepted by this exported component.

TidalDatePicker.showToday
boolean | undefined

Optional show today value accepted by this exported component.

TidalDatePicker.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

TidalDatePicker.today
string | undefined

Optional today value accepted by this exported component.

TidalDatePicker.weekStartsOn
0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined

Optional week starts on value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas