Badge

Base UI

A compact label for a status, category, or small piece of metadata.

In progress
ReadyResponsive

Usage

Package export
tsx
import { Badge } from "@jnpll/elements-ui/badge";

<Badge variant="default">{"In progress"}</Badge>

Examples

Variants
Defaultdefault
Secondarysecondary
Outlineoutline
Ghostghost
Destructivedestructive
Linklink

API Reference

PropType / descriptionDefault
variant"default" | "secondary" | "destructive" | "outline" | "ghost" | "link"

Visual emphasis.

"default"
renderReactElement | function

Composes the badge with another element.

span
classNamestring

Additional Tailwind classes, merged with defaults.

-

Composition & accessibility

Use short, meaningful labels. Badge styling alone does not convey interactive behavior; compose with a link when navigation is intended.