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 by shadcn/ui to manage components.
-
Navigate to the ui-layout app:
- Build the components:
2. Using uilayouts CLI
After adding the component with shadcn, you need to add it to the uilayouts CLI registry.
- List available components:
- Add the component in ****
registry-cli.json
This is the CLI registry that uilayouts uses to manage components.
Replace component-name with the actual name of the component you want to add.
- Push your code to GitHub
After adding the component, if you run:
you 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
This is how you can setup uilayouts and shadcn cli
1. Using
shadcn/uiCLITo add a component using
shadcn/ui:Add the component in ****
registry.jsonThis file is used by
shadcn/uito manage components.Navigate to the
ui-layoutapp:cd apps/ui-layout2. Using
uilayoutsCLIAfter adding the component with
shadcn, you need to add it to theuilayoutsCLI registry.registry-cli.jsonThis is the CLI registry that
uilayoutsuses to manage components.After adding the component, if you run:
you 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