RapidRailsUI - UI component library built for Ruby on Rails
Get started with the most popular open-source library of interactive UI components built with the utility classes from Tailwind CSS
Introduction #
Flowbite is an open-source library of UI components based on the utility-first Tailwind CSS framework featuring dark mode support, a Figma design system, templates, and more.
It includes all of the commonly used components that a website requires, such as buttons, dropdowns, navigation bars, modals, but also some more advanced interactive elements such as datepickers.
All of the elements are built using the utility classes from Tailwind CSS and vanilla JavaScript with support for TypeScript.
Quickstart
Learn how to get started by downloading and configuring Flowbite locally on your machine and start developing.
Components
Explore the Tailwind CSS elements such as buttons, navbars, alerts, dropdowns and use them to build your website.
Figma design files
Prototype and design your website before coding with the Flowbite Figma file which is based on the Tailwind CSS classes.
Flowbite Icons
Free and open-source collection of over 430 solid and outline styled SVG icons to use with our UI component library and Figma.
Flowbite Blocks
Take your Figma and Tailwind CSS development to the next level with thousands more elements and pages with Flowbite Pro.
Upgrade to Pro
Check out over 430+ website sections and advanced UI components built with Tailwind CSS and the Flowbite Library.
Using Flowbite #
One of the disadvantages of Tailwind CSS compared to other frameworks is that it doesn't have a base set of components. This makes it really hard to quickly prototype a user interface.
This is where Flowbite comes into play: it's basically Tailwind CSS, but you get all of the components that you would normally get with a classic CSS framework like Bootstrap or Bulma.
There are over 56 types of UI components including buttons, alerts, breadcrumbs, pagination, and navbars. Flowbite also includes some custom JavaScript that enables interactive components, such as dropdowns, modals, tooltips, and many more.
Getting started #
Flowbite is technically a plugin that can be included into any existing Tailwind CSS project. To get started, you first need to make sure that you have a working Tailwind CSS project installed and that you also have Node and NPM installed on your machine.
If you don't have a Tailwind CSS project yet, you can create one by running the following command in your terminal:
npm create vite@latest my-tailwind-project -- --template template-vite-react-ts-tailwind
This will create a new directory called my-tailwind-project and install the necessary dependencies.
Once you have a Tailwind CSS project set up, you can install Flowbite by running the following command:
npm install flowbite
This will install the Flowbite library and add it to your project.
Once you have Flowbite installed, you can start using the components in your project.
To use the components, you need to import the Flowbite library into your project.
You can do this by adding the following line to your main JavaScript file:
import { Button } from 'flowbite';
This will import the Button component from the Flowbite library.
Once you have imported the library, you can start using the components in your project.
To use the components, you need to add the following line to your main HTML file:
Require via NPM #
If you have a Tailwind CSS project set up, you can install Flowbite by running the following command:
npm install flowbite
This will install the Flowbite library and add it to your project.
Once you have Flowbite installed, you can start using the components in your project.
To use the components, you need to import the Flowbite library into your project. You can do this by adding the following line to your main JavaScript file:
import { Button } from 'flowbite';
This will import the Button component from the Flowbite library.
Once you have imported the library, you can start using the components in your project.
To use the components, you need to add the following line to your main HTML file:
This will import the Flowbite library into your project.