Skip to content

Shadcn Compatibility

Learn how to configure the shadcn CLI to install OrbitUI components and ensure smooth integration with your existing project structure.

To use OrbitUI components with the CLI, you must have shadcn/ui already initialized in your project. If you haven’t done this yet, follow the official shadcn/ui installation guide.

Once your project is ready, you can install components by pointing directly to their remote URL:

Terminal window
npx shadcn@latest add https://orbituidocs.vercel.app/shadcn/r/button.json

To simplify the process and avoid typing full URLs every time, you can add OrbitUI as a custom registry in your components.json file:

{
"registries": {
"@orbitui": "https://orbituidocs.vercel.app/shadcn/r/{name}.json"
}
}

After adding the registry, you can install components using the shorthand syntax:

Terminal window
npx shadcn@latest add @orbitui/button