Installation
Global installation, on-demand installation, configuration
Global Installation
Allows you to use all components under the nextui-vue
namespace.
bash
npm install nextui-vue
bash
pnpm install nextui-vue
bash
yarn install nextui-vue
bash
bun install nextui-vue
On-Demand Installation
Install only the components you need. Please refer to each component's documentation to learn how to install them.
TIP
Make sure you have completed the Theme Configuration before using on-demand installation.
Theme Configuration
Install the HeroUI theme.
bash
npm install @heroui/theme
bash
pnpm install @heroui/theme
bash
yarn install @heroui/theme
bash
bun install @heroui/theme
Since HeroUI is based on TailwindCSS, you also need to install it. Refer to TailwindCSS installation steps.
WARNING
Only TailwindCSS V3 and below are supported, V4 is not supported, related issue.
Then add the following code to your tailwind.config.js
file:
js
// tailwind.config.js
const { heroui } = require('@heroui/theme')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {},
},
darkMode: 'class',
plugins: [heroui()]
}