Badge
Label status or metadata beside related content.
Use Badge for compact status or metadata beside content. It is presentational by default; an action needs a semantic interactive root and an accessible name.
Basic usage#
Playground#
New feature
Props
Slots
Anatomy#
Usage#
Presentational status#
Use Badge for compact, presentational status or metadata alongside a separately labeled control or heading. For an interactive badge, choose a semantic root with as and provide its required attributes, such as type="button". Badge does not replace an accessible status announcement where one is required.
Examples#
Status and metadata#
Props#
Props for the Badge component. Renders a <span> element by default.
Prop