TimePicker
A time selection input with hour, minute, and optional second columns.
Installation
dotnet add package Lumeo
One-time app setup (AddLumeo(), CSS & JS) is covered in the
installation guide.
Usage
@using Lumeo <TimePicker />
When to Use
- Standalone time selection for scheduling or alarm settings
- Forms where only time input is needed without a date
- Configuring time-based intervals like business hours or reminders
- Time-of-day inputs with customizable step intervals
Selected: 14:30
API Reference
TimePicker
| Property | Type | Default | Description |
|---|---|---|---|
| Value | TimeSpan? | — | The selected time value. |
| Use24Hour | bool | true | Use 24-hour format. Set false for 12-hour with AM/PM. |
| ShowSeconds | bool | false | Show seconds column. |
| MinuteStep | int | 1 | Step interval for minutes. |
| Placeholder | string? | "Select time" | Placeholder text when no value selected. |
| Disabled | bool | false | Disable the picker. |
| SecondStep | int | 1 | Step interval for seconds. |
| ValueChanged | EventCallback<TimeSpan?> | — | Callback for two-way binding when the selected time changes. |
| Required | bool | false | Marks the field as required. Syncs with a parent FormField. |
| Invalid | bool | false | Applies error styling. Syncs with a parent FormField. |
| ErrorText | string? | null | Error message displayed below the field when Invalid is true. |
| HelperText | string? | null | Helper text shown below the field when not invalid. |
| Label | string? | null | Label rendered above the field (standalone, without FormField). |
| Name | string? | null | HTML name attribute for form submission. |
| FormField | FormField.FormFieldContext? | null | Cascaded context from a parent FormField; wires label, validation, and required state automatically. |
| Variant | TimePickerVariant | List | Calendar (default) or Wheel for iOS-style drum scrolling. |
| Culture | System.Globalization.CultureInfo? | null | Overrides CurrentCulture for 24h/12h detection and AM/PM designators. |
Related Components
- DatePicker — Date selection when you also need a calendar
- DateTimePicker — Combined date and time picker in a single control
- Input — Basic text input for manual time entry