### Get Project Info Source: https://github.com/unovue/shadcn-vue/blob/dev/skills/shadcn-vue/SKILL.md Fetches the current project configuration and installed components in JSON format. Use this to understand your project's setup. ```Bash npx shadcn-vue@latest info --json ``` -------------------------------- ### Installation Guide Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/button-group.md Instructions for installing the Button Group component using either the CLI or manual installation method. ```APIDOC ## Installation ### CLI Installation The quickest way to install the Button Group component: ```bash npx shadcn-vue@latest add button-group ``` ### Manual Installation If you prefer to install manually: 1. Install the required dependency: ```bash npm install reka-ui ``` 2. Copy and paste the source code from the [GitHub repository](https://github.com/unovue/shadcn-vue/tree/dev/apps/v4/registry/new-york-v4/ui/button-group) into your project. 3. Update the import paths to match your project setup. ``` -------------------------------- ### Custom Documentation for CLI Installation Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/registry/registry-item-json.md Provide custom documentation or messages to be displayed in the CLI when a registry item is installed. This is useful for guiding users on necessary setup steps. ```json { "docs": "Remember to add the FOO_BAR environment variable to your .env file." } ``` -------------------------------- ### Installation Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/spinner.md Methods to add the Spinner component to your project via CLI or manual setup. ```APIDOC ## INSTALL Spinner ### Description Install the component using the shadcn-vue CLI or manually by copying the source code. ### Parameters #### CLI Command - **command** (string) - npx shadcn-vue@latest add spinner #### Manual Dependencies - **reka-ui** (package) - Required dependency for manual installation. ### Request Example ```bash npx shadcn-vue@latest add spinner ``` ``` -------------------------------- ### Get Component Documentation Source: https://github.com/unovue/shadcn-vue/blob/dev/skills/shadcn-vue/SKILL.md Retrieves documentation and example URLs for a specific component. Use this to learn about a component's usage and available options. ```Bash npx shadcn-vue@latest docs ``` -------------------------------- ### Installation Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/input-group.md Instructions for installing the Input Group component using CLI or manual setup. The component requires reka-ui as a dependency. ```APIDOC ## Installation ### CLI Installation ```bash npx shadcn-vue@latest add input-group ``` ### Manual Installation 1. Install dependencies: ```bash npm install reka-ui ``` 2. Copy the source code from [GitHub](https://github.com/unovue/shadcn-vue/tree/dev/apps/v4/registry/new-york-v4/ui/input-group) into your project. 3. Update the import paths to match your project setup. ### Import ```vue import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, } from '@/components/ui/input-group' ``` ``` -------------------------------- ### Add Component Examples Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/scripts/QUICKSTART.md Commands to create example files for a component and trigger the registry build to include them in the registry output. ```bash # Create example folder and files mkdir -p registry/bases/my-base/examples/button touch registry/bases/my-base/examples/button/ButtonBasic.vue touch registry/bases/my-base/examples/button/ButtonWithIcon.vue # Build pnpm run registry:build ``` -------------------------------- ### Create Laravel Project with Vue Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/installation/04.laravel.md This command initializes a new Laravel application named 'my-app' and configures it to use Vue. It leverages the Laravel installer to streamline project setup. ```bash laravel new my-app --vue ``` -------------------------------- ### Get Component Documentation URLs Source: https://github.com/unovue/shadcn-vue/blob/dev/skills/shadcn-vue/cli.md Outputs resolved URLs for component documentation, examples, and API references. Fetch these URLs to access the actual content. ```bash npx shadcn-vue@latest docs ``` -------------------------------- ### Install Dependencies with Multiple Package Managers Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/README.md Install project dependencies using npm, pnpm, yarn, or bun. This is the first step after cloning the project. Choose one package manager based on your project setup. ```bash npm install ``` ```bash pnpm install ``` ```bash yarn install ``` ```bash bun install ``` -------------------------------- ### Install Input OTP component using shadcn-vue CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/input-otp.md This snippet demonstrates how to install the Input OTP component using the shadcn-vue CLI. This command automatically adds the necessary files and dependencies to your project, simplifying the setup process. ```bash npx shadcn-vue@latest add input-otp ``` -------------------------------- ### Install Label Component via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/label.md Quick installation command for the Label component using shadcn-vue CLI. This is the recommended method for adding the component to your project with automatic setup. ```bash npx shadcn-vue@latest add label ``` -------------------------------- ### Install Resizable Component via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/resizable.md Quick installation command using shadcn-vue CLI to add the resizable component to your project. This is the recommended installation method. ```bash npx shadcn-vue@latest add resizable ``` -------------------------------- ### Install Native Select Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/native-select.md Install the component using the CLI or manually add the required reka-ui dependency. ```bash npx shadcn-vue@latest add native-select ``` ```bash npm install reka-ui ``` -------------------------------- ### Install Badge via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/badge.md Add the Badge component to your project using the shadcn-vue CLI tool for automated setup. ```bash npx shadcn-vue@latest add badge ``` -------------------------------- ### Install Shadcn-Vue Nuxt module via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/installation/02.nuxt.md This command installs the Shadcn-Vue Nuxt module using the `nuxi` CLI. This is the recommended way to add the module, simplifying the setup process and avoiding potential console warnings related to Nuxt's auto-import feature by handling module registration automatically. ```bash npx nuxi@latest module add shadcn-nuxt ``` -------------------------------- ### Start MCP Server and Initialize Editor Configuration Source: https://github.com/unovue/shadcn-vue/blob/dev/skills/shadcn-vue/mcp.md Start the shadcn-vue MCP server for AI assistant integration and generate editor-specific configuration files. ```bash shadcn-vue mcp # start the MCP server (stdio) ``` ```bash shadcn-vue mcp init # write config for your editor ``` -------------------------------- ### Install Spinner via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/spinner.md Quick installation command for the Spinner component using shadcn-vue CLI. ```bash npx shadcn-vue@latest add spinner ``` -------------------------------- ### Install Kbd component via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/kbd.md Quick installation command for the Kbd component using shadcn-vue CLI. ```bash npx shadcn-vue@latest add kbd ``` -------------------------------- ### Example registry-item.json Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/registry/registry-item-json.md This is a complete example of a `registry-item.json` file, defining a 'hello-world' block component with associated Vue and TypeScript files. ```json { "$schema": "https://shadcn-vue.com/schema/registry-item.json", "name": "hello-world", "type": "registry:block", "title": "Hello World", "description": "A simple hello world component.", "files": [ { "path": "registry/new-york/HelloWorld/HelloWorld.vue", "type": "registry:component" }, { "path": "registry/new-york/HelloWorld/useHelloWorld.ts", "type": "registry:hook" } ] } ``` -------------------------------- ### Install Context Menu Component via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/context-menu.md Quick installation command for the context menu component using the shadcn-vue CLI. This is the recommended installation method that automatically sets up all dependencies and component files. ```bash npx shadcn-vue@latest add context-menu ``` -------------------------------- ### Install Navigation Menu via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/navigation-menu.md Quick installation command for the Navigation Menu component using shadcn-vue CLI. This is the recommended installation method that automatically sets up the component with all required dependencies. ```bash npx shadcn-vue@latest add navigation-menu ``` -------------------------------- ### Install Sonner via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/sonner.md Quick installation command using shadcn-vue CLI to add the Sonner toast component to your project. This is the recommended installation method. ```bash npx shadcn-vue@latest add sonner ``` -------------------------------- ### Install Field Component Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/field.md Use this command to install the Field component and its dependencies. ```bash npx shadcn-vue@latest add field ``` -------------------------------- ### Install Drawer Component via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/drawer.md Quick installation command for adding the Drawer component to a shadcn-vue project using the CLI tool. This is the recommended installation method for projects using shadcn-vue. ```bash npx shadcn-vue@latest add drawer ``` -------------------------------- ### Install Item component via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/item.md Install the Item component using the shadcn-vue CLI tool. ```bash npx shadcn-vue@latest add item ``` -------------------------------- ### Install Command Component Manually Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/command.md Manually install the command component by adding dependencies and copying source code. ```bash npm install reka-ui ``` -------------------------------- ### Install shadcn-vue with bun Source: https://github.com/unovue/shadcn-vue/blob/dev/skills/shadcn-vue/SKILL.md Installs shadcn-vue using bun's package runner. Use this command if your project uses bun. ```Bash bunx --bun shadcn-vue@latest * ``` -------------------------------- ### Example shadcn-vue CLI prompt response Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/installation/01.vite.md This snippet shows an example of a user's response during the `shadcn-vue` initialization process. It demonstrates selecting 'Neutral' as the base color when prompted by the CLI. ```text Which color would you like to use as base color? › Neutral ``` -------------------------------- ### Install and Build Registry via CLI Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/registry/getting-started.md Commands to install the latest shadcn-vue CLI and execute the build command to generate registry JSON files in the public directory. ```bash npm install shadcn-vue@latest npm run registry:build ``` -------------------------------- ### Install Sheet component Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/components/sheet.md Instructions for installing the Sheet component using either the shadcn-vue CLI or manually via npm. ```bash npx shadcn-vue@latest add sheet ``` ```bash npm install reka-ui ``` -------------------------------- ### Fetch Documentation for Multiple Components Source: https://github.com/unovue/shadcn-vue/blob/dev/skills/shadcn-vue/SKILL.md Use this command to fetch documentation, examples, and API references for several components at once. This is crucial for staying updated with component usage. ```bash npx shadcn-vue@latest docs button dialog select ``` -------------------------------- ### Install Dark Mode Dependencies Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/dark-mode/03.vitepress.md Commands to install @vueuse/core for theme state management and optional icon libraries for the toggle UI. ```bash npm install @vueuse/core npm install -D @iconify/vue @iconify-json/radix-icons ``` -------------------------------- ### Initialize a New Project with a Preset Source: https://github.com/unovue/shadcn-vue/blob/dev/skills/shadcn-vue/SKILL.md Create a new project and initialize it with a specific UI preset and template. This sets up the project with predefined styles and configurations. ```bash npx shadcn-vue@latest init --name my-app --preset nova ``` ```bash npx shadcn-vue@latest init --name my-app --preset a2r6bw --template vite ``` -------------------------------- ### Install shadcn-vue skill Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/skills.md Install the shadcn-vue skill into your project using the skills CLI. The skill automatically loads when working with shadcn-vue components. ```bash npx skills add unovue/shadcn-vue ``` -------------------------------- ### Init command options and usage Source: https://github.com/unovue/shadcn-vue/blob/dev/apps/v4/content/docs/06.cli.md Full usage reference for the init command including all available options for presets, templates, styles, icons, fonts, colors, and project configuration. ```bash Usage: shadcn-vue init [options] [components...] initialize your project and install dependencies Arguments: components names, url or local path to component Options: -p, --preset use a preset configuration or URL. (reka-vega, reka-nova, reka-maia, reka-lyra, reka-mira, reka-luma, reka-sera) -t, --template