diff --git a/docs/content/1.getting-started/2.installation.md b/docs/content/1.getting-started/2.installation.md index 7e48f3fa..8ddfd756 100644 --- a/docs/content/1.getting-started/2.installation.md +++ b/docs/content/1.getting-started/2.installation.md @@ -1,22 +1,33 @@ --- title: Installation -description: 'Learn how to install and configure Nuxt UI in your application.' -navigation: - badge: - label: Todo +description: 'Learn how to install and configure Nuxt UI v3 in your application.' --- ## Setup -### Add to a Nuxt project +1. Install the Nuxt UI v3 alpha package: -1. Add `@nuxt/ui` module to your project: +::code-group -```bash -npx nuxi@latest module add ui +```bash [pnpm] +pnpm add @nuxt/ui@next ``` -2. Add it to the `modules` section in your `nuxt.config.ts`: +```bash [yarn] +yarn add @nuxt/ui@next +``` + +```bash [npm] +npm install @nuxt/ui@next +``` + +```bash [bun] +bun add @nuxt/ui@next +``` + +:: + +2. Register the Nuxt UI module in your `nuxt.config.ts`: ```ts [nuxt.config.ts] export default defineNuxtConfig({ @@ -24,25 +35,29 @@ export default defineNuxtConfig({ }) ``` -That's it! You can now use all the components and composables in your Nuxt app ✨ +3. Import Tailwind and Nuxt UI in your CSS: -### Use Nuxt starter - -[Nuxt Starter](https://nuxt.new/) template makes it easy to get started with Nuxt UI. -The Nuxt Starter template is available from the `nuxi init` command. - -```bash -npx nuxi@latest init -t ui +```vue [app.vue] + ``` -Please check [nuxt/starter](https://github.com/nuxt/starter/tree/ui) for details. +::tip +This is done here in the `