add_component
Install any shadcn/ui component and its dependencies into your project. Preview the exact changes with dryRun before committing.
Instructions
Install one or more shadcn/ui components into the current project. Automatically resolves and installs all dependencies. Use dryRun=true to preview what would be installed without making changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Single component name to install — alias for names (e.g. "button") | |
| group | No | Install a predefined group of related components. Available: form, layout, navigation, overlay, data, feedback, typography | |
| names | No | Component names to install (e.g. ["button", "dialog"]) | |
| dryRun | No | Preview what would be installed without writing any files (default: false) |