Date range support for useInput() hook #1697
seanockert
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@seanockert it is indeed a good idea! Not sure what is the current status of |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
useInput()
hook works well to bind a single input to the date picker. However it's not possible to use with a date range, where we have 2 inputs forfrom
andto
. Could we please add this functionality?Suggestion
Could we set the
mode: 'range'
when initialising the props. And have 2 additional inputProps:inputPropsFrom
andinputPropsTo
that we can bind to 2 inputs: to and fromsetSelected()
would take an object:{ from: Date, to: Date }
If you could point me in the right direction, I'd be happy to investigate this further and make a PR for it.
Beta Was this translation helpful? Give feedback.
All reactions