Skip to content
项目

关于

为 Flowbite 和 Tailwind CSS 构建的官方 Vue 3 组件

网站与应用开发

这些数字如何统计

实测星标增长

24小时
+1
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

flowbite-vue

Flowbite - Tailwind CSS components

Build websites even faster with components on top of Vue and Tailwind CSS

Discord Total Downloads Latest release Licenese


flowbite-vue is an open source collection of UI components, built in Vue, with utility classes from Tailwind CSS that you can use as a starting point for user interfaces and websites.

Table of Contents

Documentation

Find the guides and every component's documentation at flowbite-vue.com.

Getting started

Flowbite Vue needs Vue 3.5 and Node.js 22.12 or newer. The quickstart guide has the full setup.

npm i flowbite-vue

With Tailwind CSS

For apps running Tailwind CSS v4.1 or newer. Add these lines to your main CSS file, after @import "tailwindcss";:

@import "tailwindcss";

/* the components' own CSS */
@import "flowbite-vue/index.css";

/* generate the utility classes the components use */
@import "flowbite-vue/tailwind.css";

/* class-based dark mode, as Flowbite uses */
@custom-variant dark (&:where(.dark, .dark *));

Your Tailwind build generates the utility classes the components use, alongside your own, so your app has one copy of each. There is no tailwind.config.js to edit. Using a prefix (prefix(tw))? See the quickstart guide.

The components don't need the flowbite package. To style your own plain form elements the Flowbite way, also install flowbite and add @import "flowbite/src/themes/default.css"; and @plugin "flowbite/plugin";.

Without Tailwind CSS

Import the prebuilt stylesheet, which has every utility class the components use:

import 'flowbite-vue/standalone.css'

Nuxt

Flowbite Vue ships a Nuxt module that auto-imports the components and injects the styles. See the Nuxt guide.

Use a component

<template>
  <fwb-button>Hello</fwb-button>
</template>

<script setup>
import { FwbButton } from 'flowbite-vue'
</script>

Components

Alerts Badge Breadcrumbs
Tailwind CSS Alerts Tailwind CSS Badge Tailwind CSS Breadcrumbs
Buttons Button group Cards
Tailwind CSS Buttons Tailwind CSS Button Group Tailwind CSS Cards
Dropdown Forms List group
Tailwind CSS Dropdown Tailwind CSS Forms Tailwind CSS List group
Typography Modal Tabs
Tailwind CSS Typography Tailwind CSS Modal Tailwind CSS Tabs
Navbar Pagination Timeline
Tailwind CSS Navbar Tailwind CSS Pagination Tailwind CSS Timeline
Progress bar Tables Toast
Tailwind CSS Progress Bar Tailwind CSS Tables Tailwind CSS Toast
Tooltips Spinner Footer
Tailwind CSS Tooltips Tailwind CSS Spinner Tailwind CSS Footer
Accordion Sidebar Carousel
Tailwind CSS Accordion Tailwind CSS Sidebar Tailwind CSS Carousel
Avatar Rating Input Field
Tailwind CSS Avatar Tailwind CSS Rating Tailwind CSS Input Field
File Input Select Textarea
Tailwind CSS File Input Tailwind CSS Select Tailwind CSS Textarea
Checkbox Radio Toggle
Tailwind CSS Checkbox Tailwind CSS Radio Tailwind CSS Toggle
Range Slider
Tailwind CSS Range Slider

Community

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

Contributing

Thank you for your interest in helping! Visit our guide on contributing to get started.

Changelog

Notable changes to this project are documented in CHANGELOG.md, following the Keep a Changelog format.

Figma

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

Copyright and license

The Flowbite name and logos are trademarks of Crafty Dwarf Inc.

📝 Read about the licensing terms

探索相关项目

加载中…