Atoms / Badge
Badge
<Badge />StableCompact label for status, counts, and tags. UpNext extends shadcn's primitive with a four-axis API — tone × appearance × size × shape — that covers external statuses (LSU commit), data tags (QB, WR, RB), and system states (Pending, Signed, Update). The legacy `variant` prop is preserved as a shorthand for tone+appearance presets.
Explorer
Cross tone × appearance × size × shape × content to test the full Badge surface. Hover any rendered badge with inspect mode on to see its tokens.
Tone
Appearance
Size
Shape
Content
<Badge tone="primary" appearance="solid" size="sm">LSU commit</Badge>
Inspector
Edit one prop at a time and see the token chain resolve. The preview re-renders, the code panel updates, and the resolves-to column shows every Tailwind class → CSS variable → final value.
Preview
Code
import { Badge } from "@/components/upnext";<Badge>Active</Badge>
Gallery
Real-world UpNext shapes that compose Badge with other surfaces.
neutral
primary
success
warning
error
info
purple
denim
sage
pink
cottoncandy
orange
teal
lime
magenta
mint
slate
mustard
violet
crimson
canary
cobalt
cocoa
emerald
sky
<Badge tone="primary" appearance="solid">LSU commit</Badge><Badge tone="success" appearance="soft">Signed</Badge><Badge tone="warning" appearance="outline">Pending</Badge><Badge tone="info" appearance="dot">Update</Badge>
Source
The wrapper is a thin re-export; the actual styling lives in the shadcn primitive.