Hello Stackers, Flowbite is an open-source component library built with the utility classes from Tailwind CSS including buttons, modals, dropdowns, datepickers, and more.
Build websites even faster with components on top of Tailwind CSS
Flowbite
Quick Start
Flowbite is a library of components built on top of the utility-classes from Tailwind CSS and it also includes a JavaScript file that makes interactive elements works, such as modals, dropdowns, and more. Learn how to get started by following this quickstart guide.
Require via NPM #
Make sure that you have Node.js and Tailwind CSS installed.
- Install Flowbite as a dependency using NPM by running the following command:
npm i flowbite
- Require Flowbite as a plugin inside the
tailwind.config.js
file:
module.exports = { plugins: [ require('flowbite/plugin') ] }
- Include the main JavaScript file to make interactive elements work:
<script src="../path/to/flowbite/dist/flowbite.js"></script>
- Additionally to your own
content
data you should addflowbite
to apply the classes from the interactive elements in thetailwind.config.js
file:
module.exports = {
content: [
"./node_modules/flowbite/**/*.js"
]
}
If you use Webpack or other bundlers you can also import it like this:
import 'flowbite';
Okay, for the full documentation please refer on here, cyaa..