SnowballSH Foundation UI

Badge

Pick a framework. Both use the same recipe, so the styling matches exactly.

accentauroraneutral
Badge props for React
PropTypeDefaultDescription
tone"accent" | "aurora" | "neutral"neutralColor accent.

Also takes className and children. Anything else passes through to the span.

badge.demo.tsx
import { Badge } from "../react/index.js";

export default function BadgeDemo() {
  return (
    <div className="flex flex-wrap items-center gap-3">
      <Badge tone="accent">accent</Badge>
      <Badge tone="aurora">aurora</Badge>
      <Badge tone="neutral">neutral</Badge>
    </div>
  );
}