sigilUI

Badge

Add a compact label for a category, count, or state.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Badge } from "@sigil-ui/components";

Usage

<Badge>Badge example</Badge>

Props

PropTypeDefaultDescription
variantBadgeVariantdefaultVisual variant.
size"sm" | "md"mdBadge size.

Token integration

CSS VariablePurpose
--s-primaryPrimary
--s-primary-contrastPrimary contrast
--s-surfaceSurface
--s-text-secondaryText secondary
--s-textText
--s-borderBorder
--s-errorError
--s-successSuccess
--s-warningWarning
--s-infoInfo
--s-radius-badgeRadius badge
--s-border-styleBorder style