Any good datepicker libraries?
I don't know what to use for picking dates. Specifically DOB right now.
4 Replies
A lot of people like shadcn so heres one: https://ui.shadcn.com/docs/components/calendar.
This one is purely just a dedicated datepicker package and is not bad: https://react-tailwindcss-datepicker.vercel.app
thanks man
i was trying to customize react-datepicker. It's okay.
I made my own after following this guide
https://youtu.be/9ySmMd5Cjc0
Itβs not about a date picker, but a calendar and you get familiar with date fns and after that I found it relatively easy to make one
Sam Selikoff
YouTube
Building an Interactive Calendar with Tailwind UI, React and date-fns
Let's take a predesigned calendar from Tailwind UI and make it functional using React and the fantastic date-fns library!
π» Calendar demo: https://stackblitz.com/github/samselikoff/2022-05-11-tailwind-ui-interactive-calendar?file=pages%2Findex.jsx
π§βπ» Diff from this video: https://github.com/samselikoff/2022-05-11-tailwind-ui-interactive-calen...
Erm html5 datepicker https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
It's pretty well maintained and I think it's feature complete at this point. π
- HTML: HyperText Markup Language | MDN
elements of type="date" create input fields that let the user enter a date, either with a textbox that validates the input or a special date picker interface.