Add components
Copy a component into your project and change it like your own code.
Each component is one file in components/vip-ui. The CLI adds the file, the packages it imports, and the theme variables it reads.
Run the CLI
- Open a terminal in the folder that has
components.json. - Run the command for each component.
- Import the component from
@/components/vip-ui.
pnpm dlx shadcn@latest add @vip-ui/button
pnpm dlx shadcn@latest add @vip-ui/dialogNote
The CLI does not change files that you edited.
Options
| Flag | Effect |
|---|---|
--yes | Skips the confirmation prompt. |
--overwrite | Replaces files that already exist. |
--path | Writes the files to a different folder. |