Add 'step' props to the TimePicker component #7515
Closed
baron159
started this conversation in
Feature requests
Replies: 1 comment 2 replies
-
It is already supported with separate props – https://alpha.mantine.dev/dates/time-picker/#hoursminutesseconds-step |
Beta Was this translation helpful? Give feedback.
2 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I believe it would beneficial to add an optional prop(s) to the
TimePicker
so 'about' times can be used. Useful when exact times are not needed, which in turn reduces the overall options to the end-user.step
could take in anobject: {hour?: number, min?: number, sec?: number }
Or 3 propsminStep:number
,hourStep:number
,secStep:number
Example:
if prop
step={{ min: 15 }}
then the picker would give the end user
0, 15, 30, 45
as options in the minute selectionNot sure if I'm allow with this thought, but in my current project. It wouldn't make a difference if the user entered
11:15
vs11:14
and I believe it would make the end-user experience better.Beta Was this translation helpful? Give feedback.
All reactions