Prerequisites#
You need a project with shadcn/ui initialized. If you do not have one yet, run:
pnpm dlx shadcn@latest initAdd a component by URL#
Every component page shows its install command. The CLI downloads the files, installs any npm dependencies, and pulls in the shadcn/ui components it needs.
pnpm dlx shadcn@latest add https://dashboardcn.com/r/kpi-card.jsonThe URL form is https://dashboardcn.com/r/<name>.json.
Add the registry namespace#
To use the shorter @dashboardcn/ form, register the namespace once in your components.json:
{
"registries": {
"@dashboardcn": "https://dashboardcn.com/r/{name}.json"
}
}Then install by name:
pnpm dlx shadcn@latest add @dashboardcn/kpi-cardAgents#
Every docs page is available as Markdown by appending .md to its URL, and llms.txt indexes them all.
A skill teaches a coding agent how to pick, install, and compose the components. With the namespace registered, install it into .claude/skills with the shadcn CLI:
pnpm dlx shadcn@latest add @dashboardcn/skillOr for any agent, with the skills CLI:
npx skills add NoahGdev/dashboardcnshadcn's MCP server reads every registry in components.json, so once the namespace is registered it can search and install from this registry too:
npx shadcn@latest mcp init --client claude