Badge
A small status indicator or label component.
Installation
pnpm dlx shadcn@latest add @columbus/badgeUsage
import { Badge } from "@/components/ui/badge";
<Badge variant="success">Active</Badge>;Sizes
With an icon
Icons are sized for you. Hide decorative icons from screen readers with
aria-hidden. Add rounded-full for a count.
Links
Use render to make a link look like a badge. It keeps link semantics and gets
hover styles.
API reference
Renders a <span> and accepts every native <span> attribute.
Prop
Type
You can also style any element as a badge with badgeVariants({ variant, size }).