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:
committed by
GitHub
parent
b3b061fc2e
commit
fafcafc221
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user