v14.2.0

Playroom

Github

Badge

View Source

Badges are used to inform users of the status of a piece of information or of an action that has been taken.

Badge
Copy
Edit
xs
sm
md
lg
xl
Copy
Edit
M
Ab
A#-Ab
Copy
Edit
Bass Guitar
Copy
Edit

Props

colorstring

Background color of the badge, sets an accessible text color

size'xs' | 'sm' | 'md' | 'lg' | 'xl'

Size of badge

squareboolean

Uses a 1:1 padding ratio, useful for icon only badges.

titlestring

The text to be rendered

  • Props
PreviousAlertNextBadge.Status