Skip to content
Back

Time pickerPro

A time field with a list at a fixed step; a later time rises in, an earlier one drops, and the list opens on the chosen time.

oxyn add time-picker
12:00 AM
12:15 AM
12:30 AM
12:45 AM
1:00 AM
1:15 AM
1:30 AM
1:45 AM
2:00 AM
2:15 AM
2:30 AM
2:45 AM
3:00 AM
3:15 AM
3:30 AM
3:45 AM
4:00 AM
4:15 AM
4:30 AM
4:45 AM
5:00 AM
5:15 AM
5:30 AM
5:45 AM
6:00 AM
6:15 AM
6:30 AM
6:45 AM
7:00 AM
7:15 AM
7:30 AM
7:45 AM
8:00 AM
8:15 AM
8:30 AM
8:45 AM
9:00 AM
9:15 AM
9:30 AM
9:45 AM
10:00 AM
10:15 AM
10:30 AM
10:45 AM
11:00 AM
11:15 AM
11:30 AM
11:45 AM
12:00 PM
12:15 PM
12:30 PM
12:45 PM
1:00 PM
1:15 PM
1:30 PM
1:45 PM
2:00 PM
2:15 PM
2:30 PM
2:45 PM
3:00 PM
3:15 PM
3:30 PM
3:45 PM
4:00 PM
4:15 PM
4:30 PM
4:45 PM
5:00 PM
5:15 PM
5:30 PM
5:45 PM
6:00 PM
6:15 PM
6:30 PM
6:45 PM
7:00 PM
7:15 PM
7:30 PM
7:45 PM
8:00 PM
8:15 PM
8:30 PM
8:45 PM
9:00 PM
9:15 PM
9:30 PM
9:45 PM
10:00 PM
10:15 PM
10:30 PM
10:45 PM
11:00 PM
11:15 PM
11:30 PM
11:45 PM
Local time
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Pick a time of day: when a recurring agent runs, a reminder, a meeting.
  • The list is short enough to scan and fixed to sensible steps.

When not to use

  • Pick one option in the text field's look: use Select instead.
  • iOS-style wheels for day and time: use Date wheel instead.
  • Spin a 24-hour dial to pick a time and see which team cities are at work: use Time dial instead.

Installation

Time picker is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add time-picker

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Open

Every 15 minutes.

12:00 AM
12:15 AM
12:30 AM
12:45 AM
1:00 AM
1:15 AM
1:30 AM
1:45 AM
2:00 AM
2:15 AM
2:30 AM
2:45 AM
3:00 AM
3:15 AM
3:30 AM
3:45 AM
4:00 AM
4:15 AM
4:30 AM
4:45 AM
5:00 AM
5:15 AM
5:30 AM
5:45 AM
6:00 AM
6:15 AM
6:30 AM
6:45 AM
7:00 AM
7:15 AM
7:30 AM
7:45 AM
8:00 AM
8:15 AM
8:30 AM
8:45 AM
9:00 AM
9:15 AM
9:30 AM
9:45 AM
10:00 AM
10:15 AM
10:30 AM
10:45 AM
11:00 AM
11:15 AM
11:30 AM
11:45 AM
12:00 PM
12:15 PM
12:30 PM
12:45 PM
1:00 PM
1:15 PM
1:30 PM
1:45 PM
2:00 PM
2:15 PM
2:30 PM
2:45 PM
3:00 PM
3:15 PM
3:30 PM
3:45 PM
4:00 PM
4:15 PM
4:30 PM
4:45 PM
5:00 PM
5:15 PM
5:30 PM
5:45 PM
6:00 PM
6:15 PM
6:30 PM
6:45 PM
7:00 PM
7:15 PM
7:30 PM
7:45 PM
8:00 PM
8:15 PM
8:30 PM
8:45 PM
9:00 PM
9:15 PM
9:30 PM
9:45 PM
10:00 PM
10:15 PM
10:30 PM
10:45 PM
11:00 PM
11:15 PM
11:30 PM
11:45 PM
Local time
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

24h

24-hour, every 30 minutes.

00:00
00:30
01:00
01:30
02:00
02:30
03:00
03:30
04:00
04:30
05:00
05:30
06:00
06:30
07:00
07:30
08:00
08:30
09:00
09:30
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
19:30
20:00
20:30
21:00
21:30
22:00
22:30
23:00
23:30
Local time
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Window

Working hours with a zone tag (Oxyn plus).

8:00 AM
8:15 AM
8:30 AM
8:45 AM
9:00 AM
9:15 AM
9:30 AM
9:45 AM
10:00 AM
10:15 AM
10:30 AM
10:45 AM
11:00 AM
11:15 AM
11:30 AM
11:45 AM
12:00 PM
12:15 PM
12:30 PM
12:45 PM
1:00 PM
1:15 PM
1:30 PM
1:45 PM
2:00 PM
2:15 PM
2:30 PM
2:45 PM
3:00 PM
3:15 PM
3:30 PM
3:45 PM
4:00 PM
4:15 PM
4:30 PM
4:45 PM
5:00 PM
5:15 PM
5:30 PM
5:45 PM
6:00 PM
Local time
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

TimePicker

PropTypeDefaultDescription
labelrequiredString—Label.
valueOption<String>Default::default()`HH:mm` (24-hour).
descriptionOption<String>Default::default()Helper copy.
placeholderString"Select a time"Placeholder.
minute_stepu3215Minutes between options: 1 · 5 · 10 · 15 · 30.
formatString"12h"`12h` · `24h`.
windowOption<String>Default::default()Oxyn plus: limit to `HH:mm-HH:mm`.
zoneOption<String>Default::default()Oxyn plus: a zone tag after the value (`PKT`).
openboolDefault::default()Start open (review sheets).
disabledboolDefault::default()Disabled.
on_changeEventHandler<String>—Changed: `HH:mm`.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
EnterorSpaceOpen, or pick the active time
↓or↑Open, then move through times (wraps)
EscClose

Accessibility

  • Trigger: aria-haspopup=listbox, aria-expanded, aria-controls, labelled by the label and a hidden value.
  • Options carry aria-selected; the list scrolls itself, never the page.
From the spec

Same pattern as select.md: a trigger button with aria-haspopup=listbox, aria-expanded, aria-controls and aria-activedescendant; options carry aria-selected. Labels read the formatted time ("9:30 AM").

Motion & interaction

The shown time rises in from below when the new time is later and drops from above when it is earlier. The list opens scrolled to the selected time and scrolls itself, never the page.

Timing
TransitionDurationEasingReduced motion
List open180 msease.out80 ms fade
Value rise / drop180 ms, blur 3 → 0ease.outcrossfade
Highlight214 ms spring.snapspringjump

Responsive behaviour

  • The list spans the field and caps at 250 px.
Edge cases (spec)

A value off the step selects the nearest option for the highlight but keeps the exact value. 1- minute steps make 1,440 rows: the list stays virtual-friendly by capping height and scrolling. 12 AM / 12 PM read correctly. Narrow screens: the list spans the field.

Notes for AI

  • Import TimePicker from oxyn_dioxus and include PRIMITIVES_CSS plus the token stylesheet once.
  • A GPUI version exists: TimePickerEl in oxyn_gpui.
  • Props to set first: label.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI