🎨 Designed and developed by RapidRails agency

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.

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.