Data Display · ui · 3K

Badge

Small square tag in the chrome face with a 1px frame, with shadcn/ui's variants (default inverted, secondary, outline, destructive, ghost, link) and asChild. label="hot" etc. adds a Finder label dot.

Install

pnpm dlx shadcn@latest add @s7ui/badge

Example

DefaultSecondaryOutlineDestructiveGhostLink
EssentialHotIn ProgressCoolPersonalProject 1
As a link:v7.13 new

Info

Files:
components/ui/badge.tsx
Uses:
@s7ui/theme, @s7ui/file-label
Packages:
radix-ui, class-variance-authority