Badge

A small label used to highlight status, category or count.

$bunx shadcn@latest add @nx-ui/badge
Registry item

Basic usage

The default badge, used for counts and short labels.

New3 sitesBatch #0412

Base variants

The shadcn-style base set: default, secondary, destructive, outline, ghost and link.

DefaultSecondaryDestructiveOutlineGhostLink

Untitled UI pill variants

Soft-tinted status pills for colour-coded categorisation across Nexus dashboards.

GrayBrandErrorWarningSuccessBlue

With icon or dot

A leading icon, or a plain coloured dot, marked with data-icon for tighter padding.

VerifiedNeeds reviewIn transitActiveArchived

Feedstock intake log

Status pills inside a table — a realistic view of a Nexus ReGen collection round.

RoundSiteMaterialStatus
RD-2231Barrowfield depotGreen wasteDelivered
RD-2232Millbrook transfer stationDigestateIn transit
RD-2233Wyke Common siteWoodchipMoisture flagged
RD-2234Barrowfield depotContaminated loadRejected

API reference

Exported parts and their props, extracted from the component source.

PropTypeDefaultDescription
variant"default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | …"default"

…extends useRender.ComponentProps<"span">