| name | getblitz-ui-components |
| description | How to add and structure UI components in the GetBlitz interface. Use this when tasked with building frontend UI or components. |
GetBlitz UI Components
This project uses Tailwind CSS v4 and a customized shadcn/ui library setup. Follow these rules when designing or adding components:
Predefined Components (shadcn)
If the component is a standard UI element (like button, dialog, forms):
- Add it using the CLI:
pnpm -F @getblitz/ui dlx shadcn@latest add [component]
Custom Components
If the component is unique to the application:
- Build it inside
packages/ui/src/components/.
- Utilize the
cn() utility for class merging.
- Use
cva (class variance authority) for defining component variations (e.g., size, variant).
- Export the custom component from
packages/ui/src/index.ts.