Forms
TwTimeRangePicker
TwTimeRangePicker is a Blazor component for choosing a start and end time from one popover. Bind Value or SelectedRange and set Format and Placeholder.
Last updated
Basic Time Range Picker
Bind
SelectedRange for a KeyValuePair<TimeOnly?, TimeOnly?> value (Key = start, Value = end). The popover reuses the same hour/minute editor as TwTimePicker, switching between the start and end with the Start/End tab at the top. Unlike the date-based range pickers, an end time earlier than the start is left as-is rather than swapped - it just represents a range that crosses midnight (e.g. an overnight shift).@bind-SelectedRange: - - -
12-Hour Format
Set
Is12HourFormat to display and edit the time with an AM/PM toggle instead of 24-hour time.Input Variants
The time range picker supports the same visual variants as the other text inputs.
Dense Time Range Picker
Set
Dense for a more compact input with a smaller height and text size. Every single-line input shares the same dense height, so they line up when used side by side.Disabled and Readonly Time Range Picker
Use the
Disabled and ReadOnly properties to restrict interaction with the time range picker.