Component libraryDate picker

Date picker

Pro

Choose a date with a native input and calendar.

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

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

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

Import components/ui/tidal.css, components/ui/date-picker.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Required label, controlled value:string|null and onValueChange; use canonical Gregorian YYYY-MM-DD, years0001..9999, with useState<string|null>. A real type=date input retains native name/form/ref/required/disabled/readOnly/native editing and submission; native display follows browser locale while the decorative readout/calendar use locale(defaulten-US). Date-only strings avoid timestamp/timezone conversion. Popup and Clear propose values without forging native change events; onChange/onInput receive real native events only. Re-selecting the current date closes without a value callback. Consumers retain ownership and may reject proposals. min/max ISO bounds and optional pure isDateDisabled(iso) apply to both calendar picks and native custom validity; consumer error also blocks editable native submission; native readOnly fields retain HTML validation semantics and do not participate in constraint validation. Invalid/reversed bounds disable the field/picker and link configuration feedback. Malformed/out-of-bounds/blocked controlled values remain caller-owned, render invalid and link feedback; malformed values render empty in the native input. Native required feedback appears after validation; helpers/errors compose with external aria-describedby. Native Alt+ArrowDown opens the calendar, composing caller onKeyDown and honoring preventDefault/composition. Trigger Enter/Space opens a modal Radix popover, focused at the selected/current bounded day. Calendar Arrows, row Home/End, PageUp/Down and Shift+PageUp/Down navigate civil days/months/years; month lengths clamp and range bounds hold. Unavailable days remain inspectable with aria-disabled and make no selection. Native month select/year draft controls browse directly; valid year commits on Enter/blur, bounded month choices and previous/next skip outside-range months. Calendar grid has one day Tab stop, named days/weekday columns, selected/current semantics, focus trap, Escape/outside dismissal and focus return. Selection/Clear returns native input focus; Escape returns the opening control. Optional todayISO (today prop; defaults local calendar day), weekStartsOn0..6(default1), locale with Gregorian UTC formatting/fallbacken-US, showToday/clearable(defaulttrue), labels (including yearRange(minimum,maximum) for a localized year alert), theme/dir, rootClassName and native input className/props. Portal automatically reads surrounding scope theme/direction on open unless explicit. Native step is fixed to one day. Persistent selected-day geometry, rolling day/year parts, bounded popup placement and finite entry/exit/paper motion honor reduced motion; selection closes after360ms so the mark can settle, immediately under reduced motion. A constrained-height popup keeps month/year controls, footer and instructions visible while only its day grid scrolls. Keyboard focus scrolls the active day into view. At360px and below, a nearly full-width popup fits all seven44px day targets without horizontal grid scrolling. The popup follows the visual viewport, including keyboard resize, and its calendar grid scrolls vertically while controls/footer remain visible. Exports date-only parsing/formatting/day-month shifting helpers and decorative TidalDateDigits requiring separate accessible text. No form wrapper, scheduling, availability service, timezone choice, network work or storage is introduced. Consumers validate real availability and handle requests.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.