structyl

Time Picker

stable

A MUI-style time field with a 12-hour analog clock panel.

Basic usage

Examples

24-hour with step

Use 24-hour mode and snap minutes to 30-minute intervals.

MUI-style time field

Use the 12-hour analog clock panel with AM/PM, minutesStep, minTime, maxTime and shouldDisableTime.

12-hour analog clock with 15-minute steps between 8:00 AM and 6:00 PM.

Seconds use a separate 1-60 clock selector.

Time segments

Use segments for hour, minute and second editing with keyboard support.

09:30
14:05:45

Features

  • 1-12 hour clock.
  • AM/PM and seconds selection.
  • Min/max time validation.

Installation

bash
pnpm dlx structyl add time-picker

API Reference

Time Picker API reference

Full props, types, defaults, and all 6 parts.

View API
Time Picker | structyl