Badge

Compact status labels in solid, soft and outline styles.

Install

npx shadcn add @clearly/badge

Preview

DefaultSecondaryOutlineDestructive

Usage

import { Badge } from "@/components/ui/badge"

<Badge />

Every Clearly component also accepts glass (subtle·medium·strong), specular and className.

Props

PropTypeDefaultDescription
variant"default" | "secondary" | "outline" | "destructive" | "ghost" | "link""default"Visual style.
asChildbooleanfalseMerge props onto the child element.