← Back to Examples

⏱️ Time / Datetime Picker (v1.14–1.15)

picker-mode="time" and picker-mode="datetime" with four time-display UIs: rolls (default), clock, wheel, compact.

picker_mode="time | datetime" · time_display="rolls | clock | wheel | compact"

Time mode — defaults (HH:mm, 24h)

No selection yet

Time mode — 12-hour format with AM/PM

No selection yet

Time mode — 15-minute step

No selection yet

Time mode — with seconds

No selection yet

Datetime mode — calendar + time side by side

No selection yet

Datetime mode — 12-hour with seconds

No selection yet

Datetime + range — should fall back to date range (console warning)

Selection logged here. Check console for a single fallback warning.

Datetime with initialDate — ISO datetime string

Should display 2026-05-23 14:30 on first render

Clock face (v1.15) — time-display="clock"

Material-style two-step face: pick the hour, the dial flips to minutes. Click the HH or MM digit in the header to jump back.

Clock — h12 with AM/PM

No selection yet

Clock — h24 dual ring (outer 1-12, inner 13-24)

Inner ring shows 13..24 with 24 at the top

Clock — 15-minute step (4 labels)

Minute face shows :00 :15 :30 :45 only

Clock — time-step="7" (non-divisor warning → falls back to 1)

60 % 7 !== 0 → console.warn fires; step becomes 1

Clock — datetime side-by-side

Calendar + clock face in one popover

Wheel barrel (v1.15) — time-display="wheel"

iOS UIPickerView aesthetic: snap-scrolling columns with a center selection band and top/bottom fade. Scroll a column or click any visible row to center it.

Wheel — defaults (HH:mm, 24h)

No selection yet

Wheel — h12 with AM/PM

No selection yet

Wheel — with seconds (HH:mm:ss)

Wheel supports seconds (clock does not)

Wheel — 5-minute step

Minute column shows :00 :05 :10 ... :55

Wheel — datetime side-by-side

Calendar + wheel in one popover

Compact pills (v1.15) — time-display="compact"

iOS 14+ aesthetic: tap a pill to type a value. Enter commits, Escape reverts, ↑/↓ nudge by step. Calmest of the four time UIs.

Compact — defaults (HH:mm, 24h)

No selection yet — tap a pill and type

Compact — h12 with AM/PM

No selection yet

Compact — with seconds (HH:mm:ss)

Third pill appears for seconds

Compact — 15-minute step

Type :22 → commits to :15; arrow keys jump by 15

Compact — datetime side-by-side

Calendar + compact pills in one popover
🔌 Server round-trip
0
The LiveView server saw 0 event(s) from the wrapper.
(pick a date anywhere on this page)