Skip to content

AbdallahEltayeb/tailwind-react-datepicker

 
 

Repository files navigation

Why this exists

This is how you can make datepicker in React with react-datepicker and style this in Tailwind.

By the time of making this, datepicker for Headless UI didn't exist, and there were no docs on any popular react datepicker library about how to make it work with Tailwind.

As a result I spent fuckton of time inspecting classes in Chrome devtools and styling them in Tailwind manually. I think I made a decent job and hope it saves someone some time.

This is not a package, just some code for you to get idea how to do it in your project.

About

React-datepicker styled with Tailwind CSS. Not a package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 78.9%
  • CSS 21.1%