Third-Party Plugins
The Advanced Datepicker component for selecting date and time, ideally combining ease and powerful functionality.
Note that this component requires the use of the third-party Vanilla Calendar Pro plugin.
Note that this component requires the use of our Advanced Datepicker plugin, else you can skip this message if you are already using Preline UI as a package.
Install Vanilla Calendar Pro via npm
npm i vanilla-calendar-pro
Import the Preline UI Datepciker CSS file into your Tailwind CSS file. Here's how the full CSS file should look like:
@import "tailwindcss";
/* Preline UI */
@import "./node_modules/preline/variants.css";
@import "./node_modules/preline/src/plugins/datepicker/styles.css";
/* Plugins */
@plugin "@tailwindcss/forms";
/* Preline Themes */
@import "./themes/theme.css";
If you plan to use Preline with utility-based classes, you should replace styles.css with styles-utility.css.
Include the JavaScript <script> near the end of your </body> tag:
Certain JavaScript Helpers in Preline UI make use of Lodash plugin. Don't forget to install it, if you haven't done so already: npm i lodash
A grid-based date picker with a structured month and year selection interfaces.
Demonstrates how to apply custom styles to advanced select elements.
An advanced usage with navigation controls for switching between dates or months, and a "Today" button for quick access to the current date.
Provides destroy method that helps to destroy a datepicker.