Badge
Small status indicator component
Preview
Interactive preview of the Badge component
Default
Secondary
Outline
Destructive
Usage Guidelines
When to use
- Use badge components when you need to display or organize content
- Consider using badge for structured content presentation
Best practices
- Maintain consistent styling across similar badge components
- Ensure proper labeling and accessibility attributes
- Use appropriate variants for different contexts and purposes
Accessibility
The Badge component follows accessibility best practices:
- Uses semantic HTML elements when appropriate
- Supports keyboard navigation
- Includes proper ARIA attributes
- Maintains sufficient color contrast
Used On Pages
The Badge component is used on the following pages: