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
stepspaces the suggested times (every 15 minutes by default). Any other minute can still be typed.min/maxbound both the suggestions and validation;hour12shows the suggestions as9:00 AM;secondsadds 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
| Name | Type | Default | Description |
|---|---|---|---|
id | string | — | |
step | number | 15 | minutes between options in the dropdown list |
min | string | — | |
max | string | — | |
hour12 | boolean | — | 12-hour display in the list; the value stays "HH:MM" |
seconds | boolean | — | |
disabled | boolean | — | |
invalid | boolean | — | |
label | string | — | accessible name when there's no Field or <label>; defaults to "Time" outside a Field |
size | "md" | "sm" | "lg" | "md" | |
modelValue | string | "" | "HH:MM" or "HH:MM:SS" |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string] |