DEV Community

Discussion on: Tailwind CSS Datepicker

Collapse
salmannausher profile image
Salman Nausher

In which file we have to import this "import DateRangePicker from '@themesberg/tailwind-datepicker/DateRan"
I am building a rails application

Collapse
zolidev profile image
Zoltán Szőgyényi Author

If you're using something like Webpack where you can import JS modules then you should do that in a JavaScript file.

If you want a more simple way of doing it you can just include the Flowbite CDN file and then use the datepicker with data attributes.