Tailwind-datepicker-react component

A Tailwindcss/Flowbite datepicker component built as a React component with types based on the original datepicker from Flowbite. This component can also be used as a plugin using the Flowbite React library. The datepicker features both inline and a date range picker functionality and some extra options such as autohide, custom format, positioning, and more.

1.Install the package.

npm install tailwind-datepicker-react

2.Add the styles to your tailwind.config.js file

module.exports = {

content: [

“./node_modules/tailwind-datepicker-react/dist/*/.js”, // <— Add this line
],

};

3.Import the component and use it.

import Datepicker from “tailwind-datepicker-react”

The component along with it’s code can be called in the page where you want to dispaly it.

Leave a comment

Your email address will not be published. Required fields are marked *