ITimePickerProps
@spartanfx/react / index / ITimePickerProps
Interface: ITimePickerProps
Props for the embedded TimePicker sub-component.
Properties
| Property | Type | Description |
|---|---|---|
appearanceMode? | AppearanceMode | Visual theme (follows the global AppearanceMode). Default AppearanceMode.light |
disabled? | boolean | Disables the whole picker (fields are rendered but not editable). |
format? | TimeFormat | Time format used to render and validate the inputs. Default TimeFormat.H24 |
hours | number | Current hour value (0-23 in 24h format, 1-12 in 12h format). |
label? | string | Optional label displayed above the fields (e.g. localized "Time"). Default 'Time' |
minutes | number | Current minute value (0-59). |
minuteStep? | number | Step (in minutes) applied when using the up/down arrows on the minutes field or when scrolling with keyboard shortcuts. Default 1 |
onChange | (next) => void | Called whenever the user changes the hours, minutes or AM/PM marker. |
period? | "AM" | "PM" | AM/PM marker when the format is H12. Ignored in 24h mode. |
tokens? | IDateTimePickerTokens | Optional tokens that override the default palette / sizing. |
translate? | (text) => string | Optional translate function applied to built-in strings. |