TimePicker
TimePickers allow users to easily enter times.
onInputChange
onChange
Props
Name | Type | Default | Description |
---|---|---|---|
labelText | string | The label | |
timeFormat | string | hh:mm aa | The default time format (see date-fns for available time formats) |
interval | number | 15 | The time difference in minutes between the time options |
minTime | string | The latest time that can be selected in 24 hour time string format e.g: 02: 30 | |
maxTime | string | The latest time that can be selected in 24 hour time string e.g: 02: 30 | |
value | string | Value of input, used when controlling the component in 24 hour time string e.g: 02: 30 | |
defaultValue | string | Default value of input | |
onInputChange | function | Event handler for when the value typed into the input changes | |
onChange | function | Event handler for when the selected value changes |