Badge
Displays a compact status, category, or count. Use it for short metadata that should be easy to scan beside other content.
React
Ready
Figma
React examples
Variants
ActiveIdleDraftOnlineUpdatingLow batterySignal weakOffline
31299+
import { Badge, BadgeNumber, Stack } from "@kela-systems/ui-components"; export default function BadgeVariants() { return ( <Stack gap={4}> <Stack direction="row" gap={2} align="center" wrap> <Badge>Active</Badge> <Badge variant="secondary">Idle</Badge> <Badge variant="outline">Draft</Badge> <Badge variant="success">Online</Badge> <Badge variant="info">Updating</Badge> <Badge variant="warning">Low battery</Badge> <Badge variant="alert">Signal weak</Badge> <Badge variant="destructive">Offline</Badge> </Stack> <Stack direction="row" gap={2} align="center"> <BadgeNumber>3</BadgeNumber> <BadgeNumber variant="secondary">12</BadgeNumber> <BadgeNumber variant="destructive">99+</BadgeNumber> </Stack> </Stack> ); }
Props
Badge
| Name | Default | Description |
|---|---|---|
variant"default" | "secondary" | "outline" | "ghost" | "destructive" | "warning" | "alert" | "success" | "info" | "default" |
It also takes the attributes of the HTML element it renders.
BadgeNumber
| Name | Default | Description |
|---|---|---|
variant"default" | "secondary" | "outline" | "ghost" | "destructive" | "default" |
It also takes the attributes of the HTML element it renders.
Also exported: badgeVariants (variants), badgeNumberVariants (variants).