Skip to content

TimeInput

The TimeInput widget displays a native browser time picker. Its value is available as HH:MM or HH:MM:SS.

import mercury as mr
time = mr.TimeInput(
label="Select time",
value="14:30",
step=60
)
time.value

type: string

Text displayed above the input. The default is "Time".

type: string

Initial time value in HH:MM or HH:MM:SS format.

type: string

Minimum allowed time.

type: string

Maximum allowed time.

type: int

Input step in seconds. The default is 60.

type: string

URL query parameter name used to override the initial value.

type: "sidebar" | "inline" | "bottom"

Controls where the widget is rendered. The default is "sidebar".

type: bool

If True, the input is visible but cannot be edited.

type: bool

If True, the widget exists in app state but is not rendered.

type: string

Unique identifier used to distinguish widgets with identical arguments.