Badges (or Pills) are used to convey dynamic information such as counts, status, or other secondary data. They can include labels, icons, or numbers and are typically used alongside text to enhance user understanding of key information.
Badges are ideal for:
A simple badge displaying only text, often used for status or count notifications. Add an icon to the badge for extra context or visual emphasis. Icons can help clarify the message.
Default Default + icon
<span class="pill">...</span>
Small badges are compact, often used next to text or within tight spaces, like notification counters or inline indicators.
Default Default + icon
<span class="pill pill--sm">...</span>
Large badges are more prominent and used for primary status indicators. Ideal for profile views, task boards, or sidebars.
Default Default + icon
<span class="pill pill--lg">...</span>
The solid badge design is the standard look, with a filled background. Ideal for general use.
Default: Solid
<span class="pill pill--default-solid">...</span>
The ghost badge has a transparent background with only the border and text visible. It’s subtle and used when minimal emphasis is required.
Ghost
<span class="pill pill--ghost">...</span>
The info badge style is used to indicate neutral, informational status, typically showing background details that don’t require immediate action.
Info Info: Solid
<span class="pill pill--info">...</span>
<span class="pill pill--info-solid">...</span>
The negative badge design indicates negative statuses such as errors or issues. It is used to alert users to important problems.
Negative Negative: Solid
<span class="pill pill--negative">...</span>
<span class="pill pill--negative-solid">...</span>
The positive badge is used to indicate success or favorable outcomes, such as completion, approval, or success.
Positive Positive: Solid
<span class="pill pill--positive">...</span>
<span class="pill pill--positive-solid">...</span>
The warning badge indicates potential issues or conditions requiring attention but not necessarily errors. Often used for precautionary messages.
Warning Warning: Solid
<span class="pill pill--warning">...</span>
<span class="pill pill--warning-solid">...</span>