Badge
Overview
A badge is used to annotate other information like a label or an object name.
- info: Indicates informative or low impact
- success: Indicates stability or completion
- moderate: Indicates caution
- important: Indicates an error
- critical: Indicates danger or something critical

Status
- Figma library:
-
Ready - RH Elements:
-
Ready - WebRH:
-
Ready
Sample element
Demos
View a live version of this component and see how it can be customized.
<rh-badge number="7">7</rh-badge>
<rh-badge number="24">24</rh-badge>
<rh-badge number="240">240</rh-badge>
<rh-badge threshold="900" number="999">999</rh-badge>
<script type="module">
import '@rhds/elements/rh-badge/rh-badge.js';
</script>
When to use
- When you need to reflect counts like number of objects, events, or unread items
Status checklist
Property | Status | Meaning |
---|---|---|
Figma library |
|
Component is available in the Figma library |
RH Elements |
|
Component is available in the RH Elements repo |
WebRH |
|
Component is available in the WebRH repo |
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.