Fabric UI works with the registry CLI flow, so components are copied into your project where you can fully own and customize them.
Add Components
Install a base component by name.
pnpm dlx dlx shadcn@latest add @fabric-ui/button
Install a production-ready pattern by registry item name.
pnpm dlx dlx shadcn@latest add @fabric-ui/c-data-grid-1
Use a Local Registry
When developing Fabric UI locally, keep the site running and use the local registry URL in components.json.
pnpm dev
{
"registries": {
"@fabric-ui": "http://localhost:4000/r/{style}/{name}.json"
}
}Then install items the same way.
pnpm dlx dlx shadcn@latest add @fabric-ui/filters
Recommended Flow
- Pick a base and style in the Theme customizer.
- Install the smallest component you need first.
- Add patterns when you want complete product-ready examples.
- Keep installed code in your app and adapt it to your product.
Common Commands
# Add a component
npx dlx shadcn@latest add @fabric-ui/dialog
# Add a pattern
npx dlx shadcn@latest add @fabric-ui/c-kanban-1
# Initialize MCP for AI-assisted component work
npx dlx shadcn@latest mcp initFor registry setup details, see Installation and Registry.