Build websites even faster with components on top of Tailwind CSS
For full documentation, visit flowbite.com.
- Getting started
- Components
- TypeScript
- Figma Design System
- Flowbite Blocks
- Flowbite Pro
- Community
- Copyright and license
Flowbite can be included as a plugin into an existing Tailwind CSS project and it is supposed to help you build websites faster by having a set of web components to work with built with the utility classes from Tailwind CSS.
Make sure that you have Node.js and Tailwind CSS installed.
- Install Flowbite as a dependency using NPM by running the following command:
npm install flowbite
- Require Flowbite as a plugin inside the
tailwind.config.js
file:
module.exports = {
plugins: [
require('flowbite/plugin')
]
}
- Make sure that you add the template path to the
tailwind.config.js
file:
module.exports = {
content: [
"./node_modules/flowbite/**/*.js"
]
}
- Include the main JavaScript file to make interactive elements work:
<script src="../path/to/flowbite/dist/flowbite.js"></script>
If you use Webpack or other bundlers you can also import it like this to automatically include all of the data attribute event listeners from Flowbite.
import 'flowbite/dist/flowbite.min.js';
You can also import components one by one like this and use the components programatically based on JavaScript API.
import { Modal } from 'flowbite';
const modal = new Modal(...parameters);
Check out the JavaScript behaviour section of each component's page to learn how you can use this.
The quickest way to get started working with Flowbite is to simply include the CSS and JavaScript into your project via CDN.
Require the following minified stylesheet inside the head
tag:
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.1/flowbite.min.css" rel="stylesheet" />
And include the following javascript file before the end of the body
tag:
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/1.6.1/flowbite.min.js"></script>
Flowbite is an open source collection of UI components built with the utility classes from Tailwind CSS that you can use as a starting point when coding user interfaces and websites.
Flowbite supports types and interfaces for TypeScript projects and you can learn more on how to work with Tailwind CSS, Flowbite, and TypeScript on the quickstart guide inside the documentation.
If you need the Figma files for the components you can check out our website for more information:
π¨ Get access to the Figma design files
Check out Flowbite Blocks to get access to over 250+ website sections coded in Tailwind CSS and Flowbite:
π¦ Check out Flowbite Blocks
Get access to all premium features including the Figma design system, access to all Flowbite Block sections and a dashboard UI interface:
If you need help or just want to discuss about the library join the community on Github:
β¨οΈ Discuss about Flowbite on GitHub
For casual chatting with others using the library:
π¬ Join the Flowbite Discord Server
Video tutorials and presentations using Flowbite:
π₯ Subscribe to our YouTube channel
The Flowbite name and logos are trademarks of Bergside Inc.