Data Display
⚛️react
Official
Simple

Badge

A badge component for displaying status indicators, counts, or labels. Supports multiple variants and sizes.

63.0k downloads1.1k starsWCAG AAv1.5.0Updated 3/8/2024
Improve

Preview

Installation

npm install @uicomponents/badge

Usage

Props

PropTypeDefaultDescription

Accessibility

WCAG Level

AA

Keyboard Support

Yes

Screen Reader

Yes

Keyboard Navigation

  • Tab to focus
  • Enter/Space to activate

Screen Reader Notes

The Badge component announces its role and state to screen readers.

Focus Management

Focus is managed according to WAI-ARIA guidelines.

Customization

CSS Variables

VariableDefaultDescription

Changelog

v1.5.0

March 8, 2024
  • Feature
    Latest release

Community

Contributors

0 discussions
0 open issues
0 pull requests

Ready to use Badge?

Copy the code above or explore more components in our library.

Explore More