Closed frogdevvn closed 11 months ago
Hey @frogdevvn, thanks that's a great idea 💡! I'll think a bit about how this could be best implemented with the current library
I second this! :)
What do you think about this API?
const { from, to, isValid } = useTimescapeRange({
minDate: new Date('2020-01-01'),
maxDate: new Date('2024-01-01'),
// ...
})
// ...
<div>
<input {...from.getInputProps('days') />
<input {...to.getInputProps('days') />
{isValid ? '⛔️' : '✅'}
</div>
What do you think about this API?
const { from, to, isValid } = useTimescapeRange({ minDate: new Date('2020-01-01'), maxDate: new Date('2024-01-01'), // ... }) // ... <div> <input {...from.getInputProps('days') /> <input {...to.getInputProps('days') /> {isValid ? '⛔️' : '✅'} </div>
Hi. Look good :) Hope you can release it soon.
This has been released in v0.4.0
🚀
You can check it out here: https://timescape.daniellehr.de/?path=/story/root-timescape--range-calendar
Thanks for great repo. I would like to ask if you can add support for date time range picker like React-Aria: https://react-spectrum.adobe.com/react-aria/DateRangePicker.html