Updated UI package to work with the new Shadcn CLI (#59)

Updated UI package to work with the new Shadcn CLI
This commit is contained in:
Giancarlo Buomprisco
2024-09-03 18:17:51 +08:00
committed by GitHub
parent b3b061fc2e
commit fafcafc221
67 changed files with 100 additions and 73 deletions

View File

@@ -12,13 +12,11 @@ This package define two sets of components:
To install a Shadcn UI component, you can use the following command in the root of the repository:
```bash
npx shadcn-ui@latest add <component> --path=packages/ui/src/shadcn
npx shadcn@latest add <component> -c packages/ui
```
For example, to install the `Button` component, you can use the following command:
```bash
npx shadcn-ui@latest add button --path=packages/ui/src/shadcn
```
We pass the `--path` flag to specify the path where the component should be installed.
npx shadcn-ui@latest add button -c packages/ui
```