Behive Tech Registry

Badge

v0.4.0

A small status label with semantic color variants.

pnpm add @behivetech/atoms.badge

A small status label with semantic color variants.

Variants

Sizes

Props

PropTypeDefaultDescription
variantdefault | primary | success | warning | error | infodefaultColor variant
sizesm | mdmdBadge size
childrenReactNode—Badge label
classNamestring—Additional class names

Compositions

Open all 7 →

Properties

Badge props

PropTypeDefaultDescription
childrenReactNode—Content to render inside the badge
classNamestring—Additional class names to merge with the component root element
size"sm" | "md"mdControls the size; defaults to md
variant"default" | "primary" | "success" | "warning" | "error" | "info"defaultControls the color scheme; defaults to default

Also accepts the native attributes of its root element (className, aria-*, event handlers, …).