[{"data":1,"prerenderedAt":695},["ShallowReactive",2],{"navigation":3,"$fMW9jOOkNpZriWVK3P_bZYNOyYR2IEPvrHsC7cDBlJJc":404,"/docs/installation/vite":417,"surround-/docs/installation/vite":692},[4],{"title":5,"path":6,"stem":7,"children":8,"page":18},"Docs","/docs","docs",[9,273,299,317,330,356],{"title":10,"path":11,"stem":12,"children":13,"new":18,"type":272},"Components","/docs/components","docs/02.components",[14,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268],{"title":15,"path":16,"stem":17,"new":18,"type":19,"children":-1},"Accordion","/docs/components/accordion","docs/components/accordion",false,"component",{"title":21,"path":22,"stem":23,"new":18,"type":19,"children":-1},"Alert","/docs/components/alert","docs/components/alert",{"title":25,"path":26,"stem":27,"new":18,"type":19,"children":-1},"Alert Dialog","/docs/components/alert-dialog","docs/components/alert-dialog",{"title":29,"path":30,"stem":31,"new":18,"type":19,"children":-1},"Aspect Ratio","/docs/components/aspect-ratio","docs/components/aspect-ratio",{"title":33,"path":34,"stem":35,"new":18,"type":19,"children":-1},"Avatar","/docs/components/avatar","docs/components/avatar",{"title":37,"path":38,"stem":39,"new":18,"type":19,"children":-1},"Badge","/docs/components/badge","docs/components/badge",{"title":41,"path":42,"stem":43,"new":18,"type":19,"children":-1},"Breadcrumb","/docs/components/breadcrumb","docs/components/breadcrumb",{"title":45,"path":46,"stem":47,"new":18,"type":19,"children":-1},"Button","/docs/components/button","docs/components/button",{"title":49,"path":50,"stem":51,"new":18,"type":19,"children":-1},"Button Group","/docs/components/button-group","docs/components/button-group",{"title":53,"path":54,"stem":55,"new":18,"type":19,"children":-1},"Calendar","/docs/components/calendar","docs/components/calendar",{"title":57,"path":58,"stem":59,"new":18,"type":19,"children":-1},"Card","/docs/components/card","docs/components/card",{"title":61,"path":62,"stem":63,"new":18,"type":19,"children":-1},"Carousel","/docs/components/carousel","docs/components/carousel",{"title":65,"path":66,"stem":67,"new":18,"type":19,"children":-1},"Chart","/docs/components/chart","docs/components/chart",{"title":69,"path":70,"stem":71,"new":18,"type":19,"children":-1},"Checkbox","/docs/components/checkbox","docs/components/checkbox",{"title":73,"path":74,"stem":75,"new":18,"type":19,"children":-1},"Collapsible","/docs/components/collapsible","docs/components/collapsible",{"title":77,"path":78,"stem":79,"new":18,"type":19,"children":-1},"Combobox","/docs/components/combobox","docs/components/combobox",{"title":81,"path":82,"stem":83,"new":18,"type":19,"children":-1},"Command","/docs/components/command","docs/components/command",{"title":85,"path":86,"stem":87,"new":18,"type":19,"children":-1},"Context Menu","/docs/components/context-menu","docs/components/context-menu",{"title":89,"path":90,"stem":91,"new":18,"type":19,"children":-1},"Data Table","/docs/components/data-table","docs/components/data-table",{"title":93,"path":94,"stem":95,"new":18,"type":19,"children":-1},"Date Picker","/docs/components/date-picker","docs/components/date-picker",{"title":97,"path":98,"stem":99,"new":18,"type":19,"children":-1},"Dialog","/docs/components/dialog","docs/components/dialog",{"title":101,"path":102,"stem":103,"new":18,"type":19,"children":-1},"Drawer","/docs/components/drawer","docs/components/drawer",{"title":105,"path":106,"stem":107,"new":18,"type":19,"children":-1},"Dropdown Menu","/docs/components/dropdown-menu","docs/components/dropdown-menu",{"title":109,"path":110,"stem":111,"new":18,"type":19,"children":-1},"Empty","/docs/components/empty","docs/components/empty",{"title":113,"path":114,"stem":115,"new":18,"type":19,"children":-1},"Field","/docs/components/field","docs/components/field",{"title":117,"path":118,"stem":119,"new":18,"type":19,"children":-1},"Form","/docs/components/form","docs/components/form",{"title":121,"path":122,"stem":123,"new":18,"type":19,"children":-1},"Hover Card","/docs/components/hover-card","docs/components/hover-card",{"title":125,"path":126,"stem":127,"new":18,"type":19,"children":-1},"Input","/docs/components/input","docs/components/input",{"title":129,"path":130,"stem":131,"new":18,"type":19,"children":-1},"Input Group","/docs/components/input-group","docs/components/input-group",{"title":133,"path":134,"stem":135,"new":18,"type":19,"children":-1},"Input OTP","/docs/components/input-otp","docs/components/input-otp",{"title":137,"path":138,"stem":139,"new":18,"type":19,"children":-1},"Item","/docs/components/item","docs/components/item",{"title":141,"path":142,"stem":143,"new":18,"type":19,"children":-1},"Kbd","/docs/components/kbd","docs/components/kbd",{"title":145,"path":146,"stem":147,"new":18,"type":19,"children":-1},"Label","/docs/components/label","docs/components/label",{"title":149,"path":150,"stem":151,"new":18,"type":19,"children":-1},"Menubar","/docs/components/menubar","docs/components/menubar",{"title":153,"path":154,"stem":155,"new":18,"type":19,"children":-1},"Native Select","/docs/components/native-select","docs/components/native-select",{"title":157,"path":158,"stem":159,"new":18,"type":19,"children":-1},"Navigation Menu","/docs/components/navigation-menu","docs/components/navigation-menu",{"title":161,"path":162,"stem":163,"new":18,"type":19,"children":-1},"Number Field","/docs/components/number-field","docs/components/number-field",{"title":165,"path":166,"stem":167,"new":18,"type":19,"children":-1},"Pagination","/docs/components/pagination","docs/components/pagination",{"title":169,"path":170,"stem":171,"new":18,"type":19,"children":-1},"Pin Input","/docs/components/pin-input","docs/components/pin-input",{"title":173,"path":174,"stem":175,"new":18,"type":19,"children":-1},"Popover","/docs/components/popover","docs/components/popover",{"title":177,"path":178,"stem":179,"new":18,"type":19,"children":-1},"Progress","/docs/components/progress","docs/components/progress",{"title":181,"path":182,"stem":183,"new":18,"type":19,"children":-1},"Radio Group","/docs/components/radio-group","docs/components/radio-group",{"title":185,"path":186,"stem":187,"new":18,"type":19,"children":-1},"Range Calendar","/docs/components/range-calendar","docs/components/range-calendar",{"title":189,"path":190,"stem":191,"new":18,"type":19,"children":-1},"Resizable","/docs/components/resizable","docs/components/resizable",{"title":193,"path":194,"stem":195,"new":18,"type":19,"children":-1},"Scroll Area","/docs/components/scroll-area","docs/components/scroll-area",{"title":197,"path":198,"stem":199,"new":18,"type":19,"children":-1},"Select","/docs/components/select","docs/components/select",{"title":201,"path":202,"stem":203,"new":18,"type":19,"children":-1},"Separator","/docs/components/separator","docs/components/separator",{"title":205,"path":206,"stem":207,"new":18,"type":19,"children":-1},"Sheet","/docs/components/sheet","docs/components/sheet",{"title":209,"path":210,"stem":211,"new":18,"type":19,"children":-1},"Sidebar","/docs/components/sidebar","docs/components/sidebar",{"title":213,"path":214,"stem":215,"new":18,"type":19,"children":-1},"Skeleton","/docs/components/skeleton","docs/components/skeleton",{"title":217,"path":218,"stem":219,"new":18,"type":19,"children":-1},"Slider","/docs/components/slider","docs/components/slider",{"title":221,"path":222,"stem":223,"new":18,"type":19,"children":-1},"Sonner","/docs/components/sonner","docs/components/sonner",{"title":225,"path":226,"stem":227,"new":18,"type":19,"children":-1},"Spinner","/docs/components/spinner","docs/components/spinner",{"title":229,"path":230,"stem":231,"new":18,"type":19,"children":-1},"Stepper","/docs/components/stepper","docs/components/stepper",{"title":233,"path":234,"stem":235,"new":18,"type":19,"children":-1},"Switch","/docs/components/switch","docs/components/switch",{"title":237,"path":238,"stem":239,"new":18,"type":19,"children":-1},"Table","/docs/components/table","docs/components/table",{"title":241,"path":242,"stem":243,"new":18,"type":19,"children":-1},"Tabs","/docs/components/tabs","docs/components/tabs",{"title":245,"path":246,"stem":247,"new":18,"type":19,"children":-1},"Tags Input","/docs/components/tags-input","docs/components/tags-input",{"title":249,"path":250,"stem":251,"new":18,"type":19,"children":-1},"Textarea","/docs/components/textarea","docs/components/textarea",{"title":253,"path":254,"stem":255,"new":18,"type":19,"children":-1},"Toast","/docs/components/toast","docs/components/toast",{"title":257,"path":258,"stem":259,"new":18,"type":19,"children":-1},"Toggle","/docs/components/toggle","docs/components/toggle",{"title":261,"path":262,"stem":263,"new":18,"type":19,"children":-1},"Toggle Group","/docs/components/toggle-group","docs/components/toggle-group",{"title":265,"path":266,"stem":267,"new":18,"type":19,"children":-1},"Tooltip","/docs/components/tooltip","docs/components/tooltip",{"title":269,"path":270,"stem":271,"new":18,"type":19,"children":-1},"Typography","/docs/components/typography","docs/components/typography","group",{"title":274,"path":275,"stem":276,"children":277,"new":18,"type":272},"Installation","/docs/installation","docs/02.installation",[278,283,287,291,295],{"title":279,"path":280,"stem":281,"new":18,"type":282,"children":-1},"Vite","/docs/installation/vite","docs/installation/01.vite","page",{"title":284,"path":285,"stem":286,"new":18,"type":282,"children":-1},"Nuxt","/docs/installation/nuxt","docs/installation/02.nuxt",{"title":288,"path":289,"stem":290,"new":18,"type":282,"children":-1},"Astro","/docs/installation/astro","docs/installation/03.astro",{"title":292,"path":293,"stem":294,"new":18,"type":282,"children":-1},"Laravel","/docs/installation/laravel","docs/installation/04.laravel",{"title":296,"path":297,"stem":298,"new":18,"type":282,"children":-1},"Manual Installation","/docs/installation/manual","docs/installation/05.manual",{"title":300,"path":301,"stem":302,"children":303,"new":18,"type":272},"Dark Mode","/docs/dark-mode","docs/05.dark-mode",[304,307,310,314],{"title":279,"path":305,"stem":306,"new":18,"type":282,"children":-1},"/docs/dark-mode/vite","docs/dark-mode/01.vite",{"title":284,"path":308,"stem":309,"new":18,"type":282,"children":-1},"/docs/dark-mode/nuxt","docs/dark-mode/02.nuxt",{"title":311,"path":312,"stem":313,"new":18,"type":282,"children":-1},"Vitepress","/docs/dark-mode/vitepress","docs/dark-mode/03.vitepress",{"title":288,"path":315,"stem":316,"new":18,"type":282,"children":-1},"/docs/dark-mode/astro","docs/dark-mode/04.astro",{"title":318,"path":319,"stem":320,"children":321,"new":18,"type":272},"Forms","/docs/forms","docs/forms",[322,326],{"title":323,"path":324,"stem":325,"new":18,"type":282,"children":-1},"VeeValidate","/docs/forms/vee-validate","docs/forms/01.vee-validate",{"title":327,"path":328,"stem":329,"new":18,"type":282,"children":-1},"TanStack Form","/docs/forms/tanstack-form","docs/forms/02.tanstack-form",{"title":331,"path":332,"stem":333,"children":334,"new":18,"type":272},"Registry","/docs/registry","docs/registry/index",[335,336,340,344,348,352],{"title":331,"path":332,"stem":333,"new":18,"type":282,"children":-1},{"title":337,"path":338,"stem":339,"new":18,"type":282,"children":-1},"Examples","/docs/registry/examples","docs/registry/examples",{"title":341,"path":342,"stem":343,"new":18,"type":282,"children":-1},"FAQ","/docs/registry/faq","docs/registry/faq",{"title":345,"path":346,"stem":347,"new":18,"type":282,"children":-1},"Getting Started","/docs/registry/getting-started","docs/registry/getting-started",{"title":349,"path":350,"stem":351,"new":18,"type":282,"children":-1},"registry-item.json","/docs/registry/registry-item-json","docs/registry/registry-item-json",{"title":353,"path":354,"stem":355,"new":18,"type":282,"children":-1},"registry.json","/docs/registry/registry-json","docs/registry/registry-json",{"path":6,"stem":7,"title":357,"type":272,"children":358},"Get Started",[359,363,370,374,378,384,388,392,396,400],{"title":360,"path":361,"stem":362,"new":18,"type":282,"children":-1},"Introduction","/docs/introduction","docs/01.introduction",{"title":274,"path":275,"stem":276,"children":364,"new":18,"type":272},[365,366,367,368,369],{"title":279,"path":280,"stem":281,"new":18,"type":282,"children":-1},{"title":284,"path":285,"stem":286,"new":18,"type":282,"children":-1},{"title":288,"path":289,"stem":290,"new":18,"type":282,"children":-1},{"title":292,"path":293,"stem":294,"new":18,"type":282,"children":-1},{"title":296,"path":297,"stem":298,"new":18,"type":282,"children":-1},{"title":371,"path":372,"stem":373,"new":18,"type":282,"children":-1},"components.json","/docs/components-json","docs/03.components-json",{"title":375,"path":376,"stem":377,"new":18,"type":282,"children":-1},"Theming","/docs/theming","docs/04.theming",{"title":300,"path":301,"stem":302,"children":379,"new":18,"type":272},[380,381,382,383],{"title":279,"path":305,"stem":306,"new":18,"type":282,"children":-1},{"title":284,"path":308,"stem":309,"new":18,"type":282,"children":-1},{"title":311,"path":312,"stem":313,"new":18,"type":282,"children":-1},{"title":288,"path":315,"stem":316,"new":18,"type":282,"children":-1},{"title":385,"path":386,"stem":387,"new":18,"type":282,"children":-1},"CLI","/docs/cli","docs/06.cli",{"title":389,"path":390,"stem":391,"new":18,"type":282,"children":-1},"JavaScript","/docs/javascript","docs/07.javascript",{"title":393,"path":394,"stem":395,"new":18,"type":282,"children":-1},"Figma","/docs/figma","docs/09.figma",{"title":397,"path":398,"stem":399,"new":18,"type":282,"children":-1},"Changelog","/docs/changelog","docs/10.changelog",{"title":401,"path":402,"stem":403,"new":18,"type":282,"children":-1},"Legacy Docs","/docs/legacy","docs/11.legacy",{"repo":405},{"id":406,"name":407,"repo":408,"description":409,"createdAt":410,"updatedAt":411,"pushedAt":412,"stars":413,"watchers":414,"forks":415,"defaultBranch":416},658791894,"shadcn-vue","unovue/shadcn-vue","Vue port of shadcn-ui","2023-06-26T13:53:23Z","2026-04-14T10:18:37Z","2026-04-13T06:37:16Z",9755,38,638,"dev",{"id":418,"title":279,"body":419,"description":684,"extension":685,"links":686,"meta":687,"navigation":688,"new":18,"path":280,"rawbody":689,"seo":690,"stem":281,"__hash__":691},"content/docs/installation/01.vite.md",{"type":420,"value":421,"toc":674},"minimark",[422,431],[423,424,427],"vue-school-link",{"lesson":425,"placement":426},"install-shadcn-vue","top",[428,429,430],"p",{},"Watch a Vue School video on how to install shadcn-vue.",[432,433,434,439,447,457,461,467,474,483,487,510,526,530,536,549,553,614,618,624,630,636,644,648,651,657,663],"steps",{},[435,436,438],"h3",{"id":437},"create-project","Create project",[428,440,441,442,446],{},"Start by creating a new Vue project using ",[443,444,445],"code",{},"vite",":",[448,449,455],"pre",{"className":450,"code":452,"language":453,"meta":454},[451],"language-bash","npm create vite@latest my-vue-app --template vue-ts\n","bash","",[443,456,452],{"__ignoreMap":454},[435,458,460],{"id":459},"add-tailwind-css","Add Tailwind CSS",[448,462,465],{"className":463,"code":464,"language":453,"meta":454},[451],"npm install tailwindcss @tailwindcss/vite\n",[443,466,464],{"__ignoreMap":454},[428,468,469,470,473],{},"Replace everything in ",[443,471,472],{},"src/style.css"," with the following:",[448,475,481],{"className":476,"code":478,"language":479,"meta":480},[477],"language-css","@import \"tailwindcss\";\n","css","title=\"src/style.css\"",[443,482,478],{"__ignoreMap":454},[435,484,486],{"id":485},"edit-tsconfigjson-file","Edit tsconfig.json file",[428,488,489,490,493,494,497,498,501,502,505,506,509],{},"The current version of Vite splits TypeScript configuration into three files, two of which need to be edited.\nAdd the ",[443,491,492],{},"baseUrl"," and ",[443,495,496],{},"paths"," properties to the ",[443,499,500],{},"compilerOptions"," section of the ",[443,503,504],{},"tsconfig.json"," and\n",[443,507,508],{},"tsconfig.app.json"," files:",[448,511,524],{"className":512,"code":514,"highlights":515,"language":522,"meta":523},[513],"language-json","{\n  \"files\": [],\n  \"references\": [\n    {\n      \"path\": \"./tsconfig.app.json\"\n    },\n    {\n      \"path\": \"./tsconfig.node.json\"\n    }\n  ],\n  \"compilerOptions\": {\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@/*\": [\"./src/*\"]\n    }\n  }\n}\n",[516,517,518,519,520,521],11,12,13,14,15,16,"json","showLineNumbers",[443,525,514],{"__ignoreMap":454},[435,527,529],{"id":528},"edit-tsconfigappjson-file","Edit tsconfig.app.json file",[428,531,532,533,535],{},"Add the following code to the ",[443,534,508],{}," file to resolve paths, for your IDE:",[448,537,547],{"className":538,"code":539,"highlights":540,"language":522,"meta":523},[513],"{\n  \"compilerOptions\": {\n    // ...\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@/*\": [\n        \"./src/*\"\n      ]\n    }\n    // ...\n  }\n}\n",[541,542,543,544,545,546],4,5,6,7,8,9,[443,548,539],{"__ignoreMap":454},[435,550,552],{"id":551},"update-viteconfigts","Update vite.config.ts",[554,555,561,574,594],"tabs",{"className":556,"default-value":560},[557,558,559],"relative","mt-6","w-full","resolve",[562,563,564,569],"tabs-list",{},[565,566,567],"tabs-trigger",{"value":560},[428,568,560],{},[565,570,572],{"value":571},"vite-tsconfig-paths",[428,573,571],{},[575,576,577,580,586],"tabs-content",{"value":560},[428,578,579],{},"Add the following code to the vite.config.ts so your app can resolve paths without error:",[448,581,584],{"className":582,"code":583,"language":453,"meta":454},[451],"npm install -D @types/node\n",[443,585,583],{"__ignoreMap":454},[448,587,592],{"className":588,"code":590,"language":591,"meta":454},[589],"language-typescript","import path from 'node:path'\nimport { defineConfig } from 'vite'\nimport tailwindcss from '@tailwindcss/vite'\nimport vue from '@vitejs/plugin-vue'\n\nexport default defineConfig({\n  plugins: [vue(), tailwindcss()],\n  resolve: {\n    alias: {\n      '@': path.resolve(__dirname, './src'),\n    },\n  },\n})\n","typescript",[443,593,590],{"__ignoreMap":454},[575,595,596,602,608],{"value":571},[428,597,598,599,601],{},"Use ",[443,600,571],{}," to resolve imports using TypeScript's path mapping",[448,603,606],{"className":604,"code":605,"language":453,"meta":454},[451],"npm install -D vite-tsconfig-paths\n",[443,607,605],{"__ignoreMap":454},[448,609,612],{"className":610,"code":611,"language":591,"meta":454},[589],"import { defineConfig } from 'vite'\nimport vue from '@vitejs/plugin-vue'\nimport tailwindcss from '@tailwindcss/vite'\nimport tsconfigPaths from 'vite-tsconfig-paths'\n\nexport default defineConfig({\n  plugins: [vue(), tailwindcss(), tsconfigPaths()],\n})\n",[443,613,611],{"__ignoreMap":454},[435,615,617],{"id":616},"run-the-cli","Run the CLI",[428,619,620,621,623],{},"Run the ",[443,622,407],{}," init command to setup your project:",[448,625,628],{"className":626,"code":627,"language":453,"meta":454},[451],"npx shadcn-vue@latest init\n",[443,629,627],{"__ignoreMap":454},[428,631,632,633,635],{},"You will be asked a few questions to configure ",[443,634,371],{},".",[448,637,642],{"className":638,"code":640,"language":641,"meta":454},[639],"language-txt","Which color would you like to use as base color? › Neutral\n","txt",[443,643,640],{"__ignoreMap":454},[435,645,647],{"id":646},"add-components","Add Components",[428,649,650],{},"You can now start adding components to your project.",[448,652,655],{"className":653,"code":654,"language":453,"meta":454},[451],"npx shadcn-vue@latest add button\n",[443,656,654],{"__ignoreMap":454},[428,658,659,660,662],{},"The command above will add the ",[443,661,45],{}," component to your project. You can then import it like this:",[448,664,672],{"className":665,"code":667,"highlights":668,"language":670,"meta":671},[666],"language-vue","\u003Cscript setup lang=\"ts\">\nimport { Button } from '@/components/ui/button'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003CButton>Click me\u003C/Button>\n  \u003C/div>\n\u003C/template>\n",[669,544],2,"vue","showLineNumbers title=\"pages/index.vue\"",[443,673,667],{"__ignoreMap":454},{"title":454,"searchDepth":669,"depth":669,"links":675},[676,678,679,680,681,682,683],{"id":437,"depth":677,"text":438},3,{"id":459,"depth":677,"text":460},{"id":485,"depth":677,"text":486},{"id":528,"depth":677,"text":529},{"id":551,"depth":677,"text":552},{"id":616,"depth":677,"text":617},{"id":646,"depth":677,"text":647},"Install and configure Vite.","md",null,{},true,"---\ntitle: Vite\ndescription: Install and configure Vite.\n---\n\n::vue-school-link{lesson=\"install-shadcn-vue\" placement=\"top\"}\nWatch a Vue School video on how to install shadcn-vue.\n::\n\n\u003CSteps>\n\n### Create project\n\nStart by creating a new Vue project using `vite`:\n\n```bash\nnpm create vite@latest my-vue-app --template vue-ts\n```\n\n### Add Tailwind CSS\n\n```bash\nnpm install tailwindcss @tailwindcss/vite\n```\n\nReplace everything in `src/style.css` with the following:\n\n```css title=\"src/style.css\"\n@import \"tailwindcss\";\n```\n\n### Edit tsconfig.json file\n\nThe current version of Vite splits TypeScript configuration into three files, two of which need to be edited.\nAdd the `baseUrl` and `paths` properties to the `compilerOptions` section of the `tsconfig.json` and\n`tsconfig.app.json` files:\n\n```json showLineNumbers {11-16}\n{\n  \"files\": [],\n  \"references\": [\n    {\n      \"path\": \"./tsconfig.app.json\"\n    },\n    {\n      \"path\": \"./tsconfig.node.json\"\n    }\n  ],\n  \"compilerOptions\": {\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@/*\": [\"./src/*\"]\n    }\n  }\n}\n```\n\n### Edit tsconfig.app.json file\n\nAdd the following code to the `tsconfig.app.json` file to resolve paths, for your IDE:\n\n```json showLineNumbers {4-9}\n{\n  \"compilerOptions\": {\n    // ...\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@/*\": [\n        \"./src/*\"\n      ]\n    }\n    // ...\n  }\n}\n```\n\n### Update vite.config.ts\n\n::tabs{default-value=\"resolve\" class=\"relative mt-6 w-full\"}\n\n  ::tabs-list\n\n    ::tabs-trigger{value=\"resolve\"}\n      resolve\n    ::\n\n    ::tabs-trigger{value=\"vite-tsconfig-paths\"}\n      vite-tsconfig-paths\n    ::\n  ::\n\n  ::tabs-content{value=\"resolve\"}\n\n    Add the following code to the vite.config.ts so your app can resolve paths without error:\n\n    ```bash\n    npm install -D @types/node\n    ```\n\n    ```typescript\n    import path from 'node:path'\n    import { defineConfig } from 'vite'\n    import tailwindcss from '@tailwindcss/vite'\n    import vue from '@vitejs/plugin-vue'\n\n    export default defineConfig({\n      plugins: [vue(), tailwindcss()],\n      resolve: {\n        alias: {\n          '@': path.resolve(__dirname, './src'),\n        },\n      },\n    })\n    ```\n\n  ::\n\n  ::tabs-content{value=\"vite-tsconfig-paths\"}\n\n    Use `vite-tsconfig-paths` to resolve imports using TypeScript's path mapping\n\n    ```bash\n    npm install -D vite-tsconfig-paths\n    ```\n\n    ```typescript\n    import { defineConfig } from 'vite'\n    import vue from '@vitejs/plugin-vue'\n    import tailwindcss from '@tailwindcss/vite'\n    import tsconfigPaths from 'vite-tsconfig-paths'\n\n    export default defineConfig({\n      plugins: [vue(), tailwindcss(), tsconfigPaths()],\n    })\n    ```\n\n  ::\n::\n\n### Run the CLI\n\nRun the `shadcn-vue` init command to setup your project:\n\n```bash\nnpx shadcn-vue@latest init\n```\n\nYou will be asked a few questions to configure `components.json`.\n\n```txt\nWhich color would you like to use as base color? › Neutral\n```\n\n### Add Components\n\nYou can now start adding components to your project.\n\n```bash\nnpx shadcn-vue@latest add button\n```\n\nThe command above will add the `Button` component to your project. You can then import it like this:\n\n```vue {2,7} showLineNumbers title=\"pages/index.vue\"\n\u003Cscript setup lang=\"ts\">\nimport { Button } from '@/components/ui/button'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003CButton>Click me\u003C/Button>\n  \u003C/div>\n\u003C/template>\n```\n\n\u003C/Steps>\n",{"title":279,"description":684},"vbmnJnsoDYRQYdd-g1RdIZkfpJhkOreMrrjDQ_wn3EU",[693,694],{"title":274,"path":275,"stem":276,"children":-1},{"title":284,"path":285,"stem":286,"children":-1},1776258658421]