Badges are inline elements used to label, categorize, or organize a list of items.
To display a badge, use the class a-badge
.
A contextual class (e.g. -danger
) can also be applied to provide alternate styling.
<div class="a-badge">
<span>base</span>
</div>
<div class="a-badge -brand">
<span>brand</span>
</div>
<div class="a-badge -success">
<span>success</span>
</div>
<div class="a-badge -danger">
<span>danger</span>
</div>
<div class="a-badge -info">
<span>info</span>
</div>
<div class="a-badge -light">
<span>light</span>
</div>
<div class="a-badge -dark">
<span>dark</span>
</div>
<div class="a-badge -outline">
<span>base</span>
</div>
<div class="a-badge -outline -brand">
<span>brand</span>
</div>
<div class="a-badge -outline -success">
<span>success</span>
</div>
<div class="a-badge -outline -danger">
<span>danger</span>
</div>
<div class="a-badge -outline -info">
<span>info</span>
</div>
<div class="a-badge -outline -light">
<span>light</span>
</div>
<div class="a-badge -outline -dark">
<span>dark</span>
</div>
<div class="a-badge -flat">
<span>base</span>
</div>
<div class="a-badge -flat -brand">
<span>brand</span>
</div>
<div class="a-badge -flat -success">
<span>success</span>
</div>
<div class="a-badge -flat -danger">
<span>danger</span>
</div>
<div class="a-badge -flat -info">
<span>info</span>
</div>
<div class="a-badge -flat -light">
<span>light</span>
</div>
<div class="a-badge -flat -dark">
<span>dark</span>
</div>
Use the -pill
modifier class to render badges with a more pronounced border-radius.
<div class="a-badge -pill">
<span>base</span>
</div>
<div class="a-badge -pill -brand">
<span>brand</span>
</div>
<div class="a-badge -pill -success">
<span>success</span>
</div>
<div class="a-badge -pill -danger">
<span>danger</span>
</div>
<div class="a-badge -pill -info">
<span>info</span>
</div>
<div class="a-badge -pill -light">
<span>light</span>
</div>
<div class="a-badge -pill -dark">
<span>dark</span>
</div>
<div class="a-badge -pill -outline">
<span>base</span>
</div>
<div class="a-badge -pill -outline -brand">
<span>brand</span>
</div>
<div class="a-badge -pill -outline -success">
<span>success</span>
</div>
<div class="a-badge -pill -outline -danger">
<span>danger</span>
</div>
<div class="a-badge -pill -outline -info">
<span>info</span>
</div>
<div class="a-badge -pill -outline -light">
<span>light</span>
</div>
<div class="a-badge -pill -outline -dark">
<span>dark</span>
</div>