Skip to content
RivetUI

Badge

Displays compact metadata, identifiers, and categorical labels.

@rivetui/badge

Preview

Explore each composition interactively, then open its code in the same context.

Default

Attach compact categorical or technical metadata to the content it describes.

Note
Keep badge labels short. Use Status instead when the value represents a changing operational state.

Release candidate

Deployment metadata for the current revision.

Stable
Version
v2.4.0
Region
fra1
Commit
8f31c2a

Variants

Choose visual emphasis by meaning rather than using every variant in the same interface.

StablePreviewv2.4.0Blocked

Registry

Installation

Add the component source and its declared dependencies with the shadcn CLI.

Install component
bunx --bun shadcn@latest add @rivetui/badge
Inspect registry item

Public interface

API reference

Component-specific props are listed here. Native element and Base UI props continue to pass through.

PropTypeDefault
variant"primary" | "secondary" | "outline" | "destructive""primary"
classNamestring—
Rivet UI / BadgeComponents engineered, not decorated.