Badge
Base UIA compact label for a status, category, or small piece of metadata.
ReadyResponsive
Usage
Package exportimport { Badge } from "@jnpll/elements-ui/badge";
<Badge variant="default">{"In progress"}</Badge>Examples
Variants
Default
defaultSecondary
secondaryOutline
outlineGhost
ghostDestructive
destructiveLink
linkAPI Reference
| Prop | Type / description | Default |
|---|---|---|
variant | "default" | "secondary" | "destructive" | "outline" | "ghost" | "link"Visual emphasis. | "default" |
render | ReactElement | functionComposes the badge with another element. | span |
className | stringAdditional Tailwind classes, merged with defaults. | - |
Composition & accessibility
Use short, meaningful labels. Badge styling alone does not convey interactive behavior; compose with a link when navigation is intended.