-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
This is how you can setup uilayouts and shadcn cli
1. Using shadcn/ui CLI
To add a component using shadcn/ui:
-
Add the component in ****
registry.json
This file is used byshadcn/uito manage components. -
Navigate to the
ui-layoutapp:
cd apps/ui-layout- Build the components:
npx shadcn build2. Using uilayouts CLI
After adding the component with shadcn, you need to add it to the uilayouts CLI registry.
- List available components:
npx uilayouts list- Add the component in ****
registry-cli.json
This is the CLI registry thatuilayoutsuses to manage components.
Replace
component-namewith the actual name of the component you want to add.
- Push your code to GitHub
After adding the component, if you run:
npx uilayouts listyou will not see the component yet, because the CLI fetches the list from the remote repository. Make sure to push your changes to GitHub first.
3. References
- [uilayouts CLI Documentation](https://github.com/ui-layouts/uilayouts/blob/main/apps/ui-layout/cli/README.md)
Metadata
Metadata
Assignees
Labels
No labels