pnpm dlx shadcn@latest add @saturation-ui/status-badgeTailwind v4 — Source Scanning
The public shadcn registry installs component source into your project. If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:
@source "../components";This ensures all utility classes in CVA variants and data attribute selectors are included in your build.
import { StatusBadge } from "@/components/ui/status-badge"<StatusBadge dotColor="bg-green-500" label="Posted" />| Prop | Type | Default | Description |
|---|---|---|---|
dotColor* | string | — | Tailwind background class for the dot (e.g. 'bg-green-500'). |
label* | string | — | Display label. |
className | string | — | Additional classes on the wrapper. |
On This Page