Avatar
A compact identity marker for people and accounts.
A small label for status, category, or metadata.
npx shadcn@latest add @silicon-ui/badgenpx shadcn@latest add @silicon-ui/badgeInstall the dependencies.
npm install motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/badge/badge.tsxcomponents/silicon-ui/badge/badge.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
tone | BadgeTone
| "neutral" |
size | BadgeSize
| "md" |
icon | ReactNode | — |
Also accepts the props of HTMLAttributes<HTMLSpanElement>.