Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Tailwind CSS datepicker built with vanilla JavaScript.
Flowbite Datepicker is a free, open-source Tailwind CSS datepicker library that wraps Vanilla JS Datepicker into an easy-to-import JavaScript module for single-date and date-range pickers.
Flowbite Datepicker is a free and open source datepicker plugin that combines the utility-first CSS classes of Tailwind with the JavaScript of Vanilla JS Datepicker. It is part of the larger Flowbite component library but can be used independently in any Tailwind CSS project. The library provides two main JavaScript modules: Datepicker for single dates and DateRangePicker for selecting a start and end date.
flowbite-datepicker/Datepicker or flowbite-datepicker/DateRangePicker depending on whether you need a single date or a date range.Datepicker and DateRangePicker constructors accept a plain options object, letting you configure behavior for each instance.npm i flowbite-datepicker --save, then import the module into your JavaScript bundle.Datepicker instance on any input element by passing its element and optional options.DateRangePicker constructor to let users select a start and end date for filters, bookings, or event searches.Install the package via npm with npm i flowbite-datepicker --save. Then import the desired module in JavaScript: import Datepicker from 'flowbite-datepicker/Datepicker' or import DateRangePicker from 'flowbite-datepicker/DateRangePicker'. Finally, create a new instance by calling new Datepicker(element, options) or new DateRangePicker(element, options) on an existing DOM element.
Flowbite Datepicker is free and open source under the MIT License. A separate Flowbite Pro version exists with additional components, application UI layouts, marketing pages, e-commerce pages, and Figma files, but the datepicker plugin itself remains free.
Yes, Flowbite Datepicker is open source and distributed under the MIT License, which allows free use in personal and commercial projects.
Yes. Alongside the Datepicker module for single dates, the library includes a DateRangePicker module that lets users pick a start and end date.
Run npm i flowbite-datepicker --save in your project directory, then import the module you need in your JavaScript and initialize it on an element.
Yes, the datepicker is designed to work independently from the main Flowbite component library. It only requires Tailwind CSS to provide the utility classes for its styling.
