Skip to content

Flowbite Vue - Quickstart

Get started with Flowbite by including it into your project using NPM

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.

  1. Install flowbite and flowbite-vue as a dependency using NPM by running the following command:
npm i flowbite flowbite-vue
  1. Require Flowbite as a plugin inside the tailwind.config.js and add flowbite-vue dist folder to tailwind content:
module.exports = {
  content: [
  plugins: [
  theme: {}
  1. Import Flowbite Vue styles:
//in your `main.js` file
import '../node_modules/flowbite-vue/dist/index.css'
/* or in your `app.css` file */
@import '/node_modules/flowbite-vue/dist/index.css';
  1. Now you can use flowbite-vue anywhere in your project and build awesome interfaces:
  <fwb-dropdown text="Click me" placement="top">
      <fwb-list-group-item>Item #1</fwb-list-group-item>
      <fwb-list-group-item>Item #2</fwb-list-group-item>
      <fwb-list-group-item>Item #3</fwb-list-group-item>

<script setup>
import { FwbDropdown, FwbListGroup, FwbListGroupItem } from 'flowbite-vue'

Make sure you have tailwind css imported.

@tailwind base;
@tailwind components;
@tailwind utilities;

Released under the MIT License.