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
 
zoltanszogyenyi profile image
Zoltán Szőgyényi

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.