Create Switch component and update dependencies in lock file
Introduce a new Switch component in the shadcn UI package to enhance user interface capabilities. Simultaneously, the pnpm-lock.yaml file's lockfileVersion has been updated from '6.0' to '9.0'. Also, several dependencies' versions within the file are updated to ensure compatibility and security improvements.
This commit is contained in:
@@ -271,16 +271,18 @@ Makerkit makes assumptions and as such - they may not apply to your specific use
|
||||
|
||||
## Installing a Shadcn UI component
|
||||
|
||||
To install a Shadcn UI component, you can use the following command:
|
||||
To install a Shadcn UI component, you can use the following commands:
|
||||
|
||||
```bash
|
||||
npx shadcn-ui@latest add <component> --path=packages/src/ui/shadcn
|
||||
cd packages/ui
|
||||
npx shadcn-ui@latest add <component> --path=src/shadcn
|
||||
```
|
||||
|
||||
For example, to install the `Button` component, you can use the following command:
|
||||
|
||||
```bash
|
||||
npx shadcn-ui@latest add button --path=packages/src/ui/shadcn
|
||||
cd packages/ui
|
||||
npx shadcn-ui@latest add button --path=src/shadcn
|
||||
```
|
||||
|
||||
We pass the `--path` flag to specify the path where the component should be installed. You may need to adjust the path based on your project structure.
|
||||
|
||||
Reference in New Issue
Block a user