Skip to content
Dumb UI

Search Dumb UI

Jump to a page or component, or switch the style

Search Dumb UI

Jump to a page or component, or switch the style

Badge

Small status or category label. Removable for tags and filter chips.

FeedbackDumb extras
Live
Props
$ pnpm dlx shadcn@latest add @dumb/badge

Needs the @dumb registry in components.json and the style tokens. See Installation.

import { Badge } from "@/components/ui/badge"
<Badge variant="success">Live</Badge>

Removable

onRemove renders an accessible remove button.

design-systemreactaccessibilitytokens

API reference

Props marked “extra” are Dumb UI additions. Everything else matches shadcn/ui.

Badge

PropTypeDefault
variant"default" | "secondary" | "outline" | "success" | "warning" | "destructive"

Tone.

"default"
asChildboolean

Render as the child element (e.g. a link).

false
onRemoveextra() => void

Renders a remove button.

-
removeLabelextrastring

Accessible label; defaults to "Remove {text}".

-