Badge
FREESmall pill label for status and tags.
Playground
Change the props and watch the component and its code update live.
PRO
Props
Code
import { Sparkles } from "lucide-react";
import { Badge } from "@/components/ui/badge";
<Badge variant="accent">
<Sparkles />PRO
</Badge>Installation
Terminal
npx @bloxa/cli add badge
# or: npx shadcn@latest add @bloxa/badgePackages installed automatically: class-variance-authority
Examples
Variants
FREEPROv0.1
API reference
Every component also accepts the props of the element it renders.
Badge
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "accent" | "outline" | "default" | Visual style. |