Badge
The Badge
component helps to label text.
Update your pronouns in your profile settings New
Props
Usage guidelines
When to Use
- Labeling and bringing awareness to a specific element or feature (e.g., something is new or required).
When Not to Use
- Providing feedback at the element level (e.g., displaying error messages). Use inline text instead.
- Requiring interaction from users since Badges are always static and non-interactive.
Example
The Badge
component is rendered inline within parent element.
Some text that uses Badge component as its child New
Example: positioning
Larger text example rendered with a top positioned Badge
.