Installation
This guide will help you install and configure BreezeUI in your Vue 3 project.
Prerequisites
- Node.js 18.x or higher
- Vue 3.3 or higher
- Tailwind CSS 3.x
1. Install Package
Install @breezeui/vue using your preferred package manager:
::: code-group
:::
2. Install Tailwind CSS
BreezeUI is built on Tailwind CSS. Make sure Tailwind CSS is installed and configured in your project.
::: code-group
:::
3. Configure Tailwind CSS
In your tailwind.config.js (or tailwind.config.ts), add the content path and plugin for BreezeUI:
You need to install the tailwindcss-animate plugin:
4. Import Styles
Import the base styles of BreezeUI in your entry file (e.g., main.ts or main.js):
5. Use Components
BreezeUI supports two usage methods: auto-import (recommended) and manual import.
Auto Import (Recommended)
Use the unplugin-vue-components plugin to automatically import components on demand, without manual imports.
First, install the plugin:
::: code-group
:::
Then configure the plugin and BreezeUI resolver in vite.config.ts:
After configuration, you can use components directly in your template:
Manual Import
If you prefer not to use auto-import, you can also import components manually:
Global Registration (Optional)
Extra Dependencies Used in Examples
Some examples use @vueuse/core (dark mode toggling) and lucide-vue-next (icons). If you want to import them directly in your app code, install them explicitly: