In which file we have to import this "import DateRangePicker from '@themesberg/tailwind-datepicker/DateRan" I am building a rails application
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.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In which file we have to import this "import DateRangePicker from '@themesberg/tailwind-datepicker/DateRan"
I am building a rails application
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.