Skip to content

TimePicker ​

Native time input with quick picks

A time of day. It is the native time input, so phones show their own wheel and the value is always HH:MM, whatever the display.

Basic
00:00
  • step spaces the suggested times (every 15 minutes by default). Any other minute can still be typed.
  • min / max bound both the suggestions and validation; hour12 shows the suggestions as 9:00 AM; seconds adds seconds.
  • Inside a Field the field's label names it; alone it is called "Time" unless you pass label.

Usage ​

ts
import { BlessTimePicker } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
idstring—
stepnumber15minutes between options in the dropdown list
minstring—
maxstring—
hour12boolean—12-hour display in the list; the value stays "HH:MM"
secondsboolean—
disabledboolean—
invalidboolean—
labelstring—accessible name when there's no Field or <label>; defaults to "Time" outside a Field
size"md" | "sm" | "lg""md"
modelValuestring"""HH:MM" or "HH:MM:SS"

Events

NamePayloadDescription
update:modelValue[value: string]

Released under the MIT License. Character names and artwork belong to their owners.