Getting started
Install the Showcase design system in your own project. The installation flow uses shadcn/ui — if you've used it before, you'll feel right at home.
Make sure you have the following tools installed before proceeding.
- 1DownloadNode.js 22+
node --version - 2Install pnpmpnpm
pnpm --version - 3Setup guideTailwindCSSInstalled & configured
Tip: This installation process is similar to shadcn/ui. If you're familiar with that, you'll feel right at home.
Run the shadcn/ui initialization command in your project's root folder.
pnpm dlx shadcn@latest initDuring initialization, choose a base color when prompted. The CLI will then:
- Automatically detect your Vite setup and Tailwind configuration.
- Create a
components.jsonconfiguration file. - Update your CSS with the necessary CSS variables.
- Create
src/lib/utils.jswith utility functions.
You can now start adding the Showcase components to your project.
pnpm dlx shadcn@latest add https://registry-dev.sitecoreai.dev/r/button.jsonAlternatively, install the Showcase component registry to get access to all components.This installs a comprehensive set of components:
pnpm dlx shadcn@latest add https://registry-dev.sitecoreai.dev/r/showcase-components.json- Basic UI components (Button, Card, Input, etc.)
- Advanced components (Calendar, DataTable, Charts, etc.)
- Layout components (Navigation, Breadcrumbs, etc.)
- Form components (Select, Checkbox, Radio, etc.)
Update your src/App.jsx to test the installation. Components are imported with the @/ alias.
import { Button } from "@/components/registry/primitives/button"
export default function MyComponent() {
return (
<div>
<Button variant="default">Primary</Button>
<Button variant="outline">Outline</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link</Button>
</div>
)
}Start the development server.
pnpm devYour application is now running with functional Showcase components.