Skip to content
PixiKit

Badge

A small label for a status, a count or a tag, with tones, a pulsing dot and a remove button.

pixikit.com/docs/components/badge

Customize

Tone
Variant
Size
Shape
Dot
Pulse

Props

10
NameTypeDefaultDescription
tone"neutral" | "success" | "info" | "warning" | "danger""neutral"What the badge says about its subject.
variant"soft" | "outline" | "solid""soft"`soft` tints the badge, `outline` draws a border, `solid` fills it.
size"sm" | "md""md"How big the badge is.
shape"rounded" | "pill""pill"The corners.
dotbooleanfalseShows a small dot before the label.
pulsebooleanfalseMakes the dot send out a soft ping; needs `dot`.
onRemove() => voidNoneShows a remove button; the badge shrinks away, then this is called.
removeLabelstring"Remove"The words a screen reader hears for the remove button.
childrenReactNodeNoneThe label.
classNamestringNone

More data components in Pro

View all

Related