Badge component is used to display labels, statuses, and categorizations with consistent sizing, variants, and color schemes.tsx
import { Badge } from "@arkyn/components";
New
tsx
<Badge>New</Badge>
size to adjust the badge density and typography.Medium
Large
tsx
<Badge size="md">Medium</Badge><Badge size="lg">Large</Badge>
variant to control the visual treatment of the badge.Solid
Outline
Ghost
tsx
<Badge variant="solid">Solid</Badge><Badge variant="outline">Outline</Badge><Badge variant="ghost">Ghost</Badge>
scheme to match the badge to the semantic meaning of the content.Primary
Secondary
Success
Warning
Danger
Info
tsx
<Badge scheme="primary">Primary</Badge><Badge scheme="secondary">Secondary</Badge><Badge scheme="success">Success</Badge><Badge scheme="warning">Warning</Badge><Badge scheme="danger">Danger</Badge><Badge scheme="info">Info</Badge>
leftIcon and rightIcon to add optional Lucide icons around the label.tsx
<Badge leftIcon={Check} scheme="success">Completed</Badge><Badge leftIcon={Info} scheme="info">Details</Badge><Badge rightIcon={AlertTriangle} scheme="warning">Attention</Badge>
children - React.ReactNode
Content rendered inside the badge.size - "md" | "lg" (default: "lg")
Controls the badge height, padding, radius, and font size.variant - "solid" | "outline" | "ghost" (default: "ghost")
Controls the visual style of the badge.scheme - "primary" | "secondary" | "success" | "warning" | "danger" | "info" (default: "primary")
Controls the color palette used by the selected variant.leftIcon - LucideIcon
Icon rendered before the label.rightIcon - LucideIcon
Icon rendered after the label.HTMLAttributes<HTMLDivElement>
All other native div props are supported, including id, title, className, and accessibility attributes.