Installation
Prerequisites
- Node.js 18+
- Vue 3.3+
- Tailwind CSS 4+
Package Manager
Install HeroUI Vue using your preferred package manager:
bash
pnpm add @heroui-vue/vue @heroui-vue/stylesbash
npm install @heroui-vue/vue @heroui-vue/stylesbash
yarn add @heroui-vue/vue @heroui-vue/stylesSetup
1. Import Styles
Import the HeroUI styles in your main entry file:
ts
// main.ts
import { createApp } from 'vue'
import '@heroui-vue/styles/src/styles.css'
import App from './App.vue'
createApp(App).mount('#app')2. Configure Tailwind CSS v4
Add HeroUI to your CSS entry file:
css
@import "tailwindcss";
@source "../node_modules/@heroui-vue";Next Steps
Continue to the Quick Start guide to learn how to use HeroUI components.