Installation
Add Cortexcn components to your project with the shadcn CLI.
Cortexcn ships as a shadcn registry. Make
sure your project is already set up with Tailwind CSS and components.json
(run npx shadcn@latest init if not).
Add a component
Install any component straight from the registry by URL:
npx shadcn@latest add https://cortexcn.studio/r/button.jsonNamespaced registry
Add the registry to your components.json to use the short @cortexcn form:
{
"registries": {
"@cortexcn": "https://cortexcn.studio/r/{name}.json"
}
}Then install with:
npx shadcn@latest add @cortexcn/buttonComponents are written into your project (e.g. components/ui/button.tsx) — you
own and can edit the code freely.