Introduction
Get started with the Ember UI component registry.
Welcome to the Ember UI component registry! This is a collection of reusable UI components built on top of Radix UI primitives and styled with Tailwind CSS, designed to accelerate your development workflow.
Getting Started
To start using this registry, you must first have shadcn installed in your project. Follow the installation instructions if necessary.
Installation
How to install dependencies and structure your app.
npx shadcn@latest inityarn shadcn@latest initpnpm dlx shadcn@latest initbunx --bun shadcn@latest initAdd the ember-ui registry to your components.json file:
{ "$schema": "https://ui.shadcn.com/schema.json", "style": "default", "rsc": true, "tsx": true, "tailwind": { "config": "", "css": "app/globals.css", "baseColor": "neutral", "cssVariables": true, "prefix": "" }, "aliases": { "components": "@/components", "utils": "@/lib/utils", "ui": "@/components/ui", "lib": "@/lib", "hooks": "@/hooks" }, "iconLibrary": "lucide", "registries": { "@emberui": "https://ember-ui.com/r/{name}.json" } }
npx shadcn@latest add @emberui/complex-componentyarn shadcn@latest add @emberui/complex-componentpnpm dlx shadcn@latest add @emberui/complex-componentbunx --bun shadcn@latest @emberui/complex-componentOutput:
✔ Checking registry.
✔ Created 6 files:
- components/ui/card.tsx
- app/pokemon/page.tsx
- components/pokemon-card.tsx
- components/pokemon-image.tsx
- lib/pokemon.ts
- hooks/use-pokemon.tsAdd the shadcn MCP server to your project
npx shadcn@latest mcp inityarn shadcn@latest mcp initpnpm dlx shadcn@latest mcp initbunx --bun shadcn@latest mcp initOnce added, the mcp server will reference your components.json to consult with the various components and blocks available in the registry.
For example, you can ask the assistant to "Build a landing page using components from the @emberui registry" or you could be more specific and ask "add a complex-component to my home page @app/page.tsx . use emberui shadcn mcp"
References
- shadcn/ui - For style and registry distribution.
- Tailwind CSS - For easily styling with utility first CSS