Badge

A small status pill. Use the colors success, danger and warning only to show a status, not for decoration.

Examples

Loading examples…

Props

PropTypeDescription
labelstringBadge text
color"secondary" | "success" | "danger" | "warning" | "info" | "discovery"Default "secondary"
size"sm" | "md" | "lg"Default "md"
pillbooleanDefault true
variant"soft" | "solid" | "outline"Default "soft"
fontWeight"normal" | "medium" | "semibold" | "bold"Default "medium"
maxWidthnumber | string
paddingnumber | string

Link to Badge · All standard components

On this page