docs(installation): improve

This commit is contained in:
Benjamin Canac
2025-03-17 12:26:53 +01:00
parent d210d18a2f
commit c3567a34a4
2 changed files with 36 additions and 5 deletions

View File

@@ -7,13 +7,29 @@ description: 'Learn how to install and configure Nuxt UI in your application.'
### Add to a Nuxt project
1. Add `@nuxt/ui` module to your project:
1. Install the `@nuxt/ui` dependency in your project:
```bash
npx nuxi@latest module add ui
::code-group
```bash [pnpm]
pnpm add @nuxt/ui@2
```
2. Add it to the `modules` section in your `nuxt.config.ts`:
```bash [yarn]
yarn add @nuxt/ui@2
```
```bash [npm]
npm install @nuxt/ui@2
```
```bash [bun]
bun add @nuxt/ui@2
```
::
2. Register the `@nuxt/ui` module in your `nuxt.config.ts`:
```ts [nuxt.config.ts]
export default defineNuxtConfig({