FEEDBACK
Badge
Compact uppercase label with a Memphis micro-shadow. Use to mark status, plan tier, or outcome on cards, table rows, and avatars. For longer labels with rounded corners reach for Chip.
Import
All variants
DefaultFeaturedSuccessWarningInfoDestructiveOutline
Props
Badge props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | 'default' | 'featured' | 'success' | 'warning' | 'info' | 'destructive' | 'outline' | 'default' | Visual tone. featured uses the badge featured token; success / warning / info / destructive map to the standard status intents; outline strips the fill. |
| children | ReactNode | — | Short label — typically 1-3 uppercase words. |
| className | string | — | Tailwind classes are merged on top of the variant defaults. |
Accessibility
- Badge renders a
<span>— the text content is the only thing announced. Pick labels that read meaningfully out of context (e.g.PROrather thanP). - When the badge encodes status that is not redundant with surrounding text (e.g. a single icon means "new"), pair it with a
<span className="sr-only">describing the meaning.