TidalUI

Time picker preview

A controlled native time field with accessible help and error wiring plus a clear 12-hour or 24-hour display.

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/time-picker

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

Preview

Time picker component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/time-picker.css";
import{TidalTimePicker}from"./components/ui/time-picker";
export default()=><div className="tidal-scope"><TidalTimePicker label={"Demo"} onValueChange={() => {}} value={"value"}/></div>;

API and props

TidalTimePicker.label (required)
ReactNode

Required label value accepted by this exported component.

TidalTimePicker.onValueChange (required)
(value: string) => void

Callback invoked when the value change interaction is proposed.

TidalTimePicker.value (required)
string

Required value value accepted by this exported component.

TidalTimePicker.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalTimePicker.displayLabel
ReactNode

Optional display label value accepted by this exported component.

TidalTimePicker.emptyDisplay
ReactNode

Optional empty display value accepted by this exported component.

TidalTimePicker.error
ReactNode

Optional error value accepted by this exported component.

TidalTimePicker.hint
ReactNode

Optional hint value accepted by this exported component.

TidalTimePicker.hourCycle
12 | 24 | undefined

Optional hour cycle value accepted by this exported component.

TidalTimePicker.inputProps
NativeTimeInputProps | undefined

Optional input props value accepted by this exported component.

TidalTimePicker.inputRef
Ref<HTMLInputElement> | undefined

Optional input ref value accepted by this exported component.

TidalTimePicker.readOnly
boolean | undefined

Optional read only value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas