onesine / react-tailwindcss-datepicker

Modern date range picker component for React using Tailwind 3 and dayjs. Alternative to Litepie Datepicker.
https://react-tailwindcss-datepicker.vercel.app/
MIT License
552 stars 169 forks source link

Support typical input field aspects such as tabIndex #247

Open mschipperheyn opened 7 months ago

mschipperheyn commented 7 months ago

I'm running into an issue where I'm hiding a dateinput field by hiding it off-screen using position absolute.

This creates problems when someone hits the tab to cycle through form inputs, bc when you hit the date input field, it opens the calendar, which causes all sorts of havoc in the ui.

In general terms, input field aspects such as tabIndex, ariaLabel etc should be configurable on the api. It prob doesn't make sense for all properties given the heavy ui customization that this component effectuates, but tabIndex is definitely one of them, not just because of my slightly unique use case.