Display
Badge
stableCompact status or count label in four styles.
since v1.00.6 kB gzip
Preview
v3.6.8StableBetaBreakingDeployed
Installation
npx @strata/cli add badgeUsage
import { Badge } from "@/components/strata";
<Badge variant="dot" color="success">Deployed</Badge>Props
| Prop | Type | Default |
|---|---|---|
variantVisual style. | "solid" | "soft" | "outline" | "dot" | "soft" |
colorTone. | "brand" | "neutral" | "success" | "warning" | "danger" | "neutral" |
shapeCorner style. | "default" | "pill" | "default" |
Accessibility
Related
Avatar
User image with initials fallback, presence dot and stacked groups.
Kbd
Renders keyboard shortcuts consistently across platforms.
Was this page helpful?
Documented since v1.0 · components/badge.mdx