Badge

A small label for a status, a category or a version.

Edit page

Example

v0.1HiredOfferInterviewScreeningNew
Example.jsx
<span className='badge'>v0.1</span>
<span className='badge green'>Hired</span>
<span className='badge blue'>Offer</span>

Like the alert, a colour variant is mixed with the page, so it works in both modes.

Variables

VariableDefaultWhat it sets
$badge-height24pxheight
$badge-padding0 8pxinner padding
$badge-radius6pxcorner radius
$badge-tint12%share of the colour in the background
$badge-edge32%share of the colour in the border