Basic badge
BadgeColors
Badges support multiple color variants to convey different meanings. Badge Badge Badge Badge Badge Badge Badge Badge Badge BadgeSizes
Badges come in four sizes to match your content hierarchy. Badge Badge Badge BadgeShapes
Choose between rounded corners or pill-shaped badges. Badge BadgeIcons
Add icons to badges for additional context. Badge Badge BadgeStroke variant
Use the stroke variant for a more subtle appearance. Badge Badge Badge BadgeDisabled state
Disable badges to indicate inactive or unavailable states. Badge BadgeInline usage
Badges work naturally within text content. For example, this feature requires a Premium subscription, or this API endpoint returns JSON format.Combined properties
Combine multiple properties for custom badge styles. Premium Verified BetaProperties
Badge color variant.Options:
gray, blue, green, orange, red,
purple, white, surface, white-destructive, surface-destructive.Badge size.Options:
xs, sm, md, lg.Badge shape.Options:
rounded, pill.The icon to display.Options:
- Font Awesome icon name
- Lucide icon name
- JSX-compatible SVG code wrapped in curly braces
- URL to an externally hosted icon
- Path to an icon file in your project
- Convert your SVG using the SVGR converter.
- Paste your SVG code into the SVG input field.
- Copy the complete
<svg>...</svg>element from the JSX output field. - Wrap the JSX-compatible SVG code in curly braces:
icon={<svg ...> ... </svg>}. - Adjust
heightandwidthas needed.
The Font Awesome icon style. Only used with Font Awesome icons.Options:
regular, solid, light, thin, sharp-solid, duotone, brands.Display badge with an outline instead of filled background.
Display badge in a disabled state with reduced opacity.
Additional CSS classes to apply to the badge.