diff --git a/apps/www/src/content/docs/installation.md b/apps/www/src/content/docs/installation.md
index 34a10e93..59d92b2c 100644
--- a/apps/www/src/content/docs/installation.md
+++ b/apps/www/src/content/docs/installation.md
@@ -64,9 +64,9 @@ This project and the components are written in TypeScript. We recommend using Ty
However we provide a JavaScript version of the components as well. The JavaScript version is available via the [cli](/docs/cli).
-To opt-out of TypeScript, you can use the `tsx` flag in your `components.json` file.
+To opt-out of TypeScript, you can use the `typescript` flag in your `components.json` file.
-```json {10} title="components.json"
+```json {9} title="components.json"
{
"style": "default",
"tailwind": {
diff --git a/apps/www/src/content/docs/installation/laravel.md b/apps/www/src/content/docs/installation/laravel.md
index 538b1e0e..3b8ffcd6 100644
--- a/apps/www/src/content/docs/installation/laravel.md
+++ b/apps/www/src/content/docs/installation/laravel.md
@@ -7,7 +7,7 @@ description: Install and configure Laravel with Inertia
### Create project
-Start by creating a new Laravel project with Inertia and Vue using the laravel installer `laravel new my-app`:
+Start by creating a new Laravel project with Inertia and Vue using the Laravel installer `laravel new my-app`:
```bash
laravel new my-app --typescript --breeze --stack=vue --git --no-interaction
@@ -30,10 +30,10 @@ Would you like to use TypeScript (recommended)? no / yes
Which framework are you using? Vite / Nuxt / Laravel
Which style would you like to use? › Default
Which color would you like to use as base color? › Slate
-Where is your global CSS file? › › src/index.css
+Where is your global CSS file? › resources/css/app.css
Do you want to use CSS variables for colors? › no / yes
Where is your tailwind.config.js located? › tailwind.config.js
-Configure the import alias for components: › @/components
+Configure the import alias for components: › @/Components
Configure the import alias for utils: › @/lib/utils
```
diff --git a/apps/www/src/content/docs/installation/nuxt.md b/apps/www/src/content/docs/installation/nuxt.md
index 1200e635..45e3ac63 100644
--- a/apps/www/src/content/docs/installation/nuxt.md
+++ b/apps/www/src/content/docs/installation/nuxt.md
@@ -19,13 +19,25 @@ npx nuxi@latest init my-app
npm install -D @nuxtjs/tailwindcss
```
+### Configure `nuxt.config.ts`
+
```ts
export default defineNuxtConfig({
- modules: ['@nuxtjs/tailwindcss']
+ modules: ['@nuxtjs/tailwindcss'],
+ components: [
+ {
+ path: '~/components/ui',
+ // this is required else Nuxt will autoImport `.ts` file
+ extensions: ['.vue'],
+ // prefix for your components, eg: UiButton
+ prefix: 'Ui'
+ },
+ ],
})
```
+
### Run the CLI
Run the `shadcn-vue` init command to setup your project:
@@ -89,7 +101,7 @@ Here's the default structure of Nuxt app. You can use this as a reference:
- I place the UI components in the `components/ui` folder.
- The rest of the components such as `` and `` are placed in the `components` folder.
- The `lib` folder contains all the utility functions. I have a `utils.ts` where I define the `cn` helper.
-- The `styles` folder contains the global CSS.
+- The `assets/css` folder contains the global CSS.
### That's it
@@ -99,16 +111,12 @@ You can now start adding components to your project.
npx shadcn-vue@latest add button
```
-The command above will add the `Button` component to your project. You can then import it like this:
-
-```vue {2,7}
-
+The command above will add the `Button` component to your project. Nuxt autoImport will handle importing the components, you can just use it as such:
+```vue {3}