Badge

A short status or category label.

Single originNewDecaf
import { Badge } from '@brand-studio/ui';

export default function BadgeDemo() {
  return (
    <div style={{ display: 'flex', flexWrap: 'wrap', gap: 8 }}>
      <Badge>Single origin</Badge>
      <Badge tone="accent">New</Badge>
      <Badge tone="outline">Decaf</Badge>
    </div>
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { Badge } from '@brand-studio/ui';
<Badge tone="accent">New</Badge>

Accessibility

  • Badges are plain text. Do not use colour alone to carry meaning.

API Reference

PropTypeDefault
tone?"accent" | "neutral" | "outline"'neutral'

Also accepts every HTMLAttributes<HTMLSpanElement> attribute.

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.