mirror of
https://github.com/zooai/design.git
synced 2026-10-30 14:50:04 +00:00
Monochrome, dark by default. One hue rendered through an opacity ladder. Tokens (color, type, spacing, radius, elevation, motion) + core/forms/navigation/ overlays components + brand guidelines + ui kit. The single source of truth for every Zoo surface — loadable and editable.
11 lines
678 B
TypeScript
11 lines
678 B
TypeScript
/** Pill label. Tier/rank is expressed with the white opacity ladder, never hue. */
|
|
export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
/** tier1/2/3 map to white/5, white/15, white/20 — the rank ladder. error is the only hued variant. */
|
|
variant?: 'default' | 'secondary' | 'outline' | 'tier1' | 'tier2' | 'tier3' | 'error';
|
|
pill?: boolean;
|
|
}
|
|
export function Badge(props: BadgeProps): JSX.Element;
|
|
export function EyebrowBadge(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
export interface StatusBadgeProps { status?: 'online' | 'idle' | 'error'; label?: string }
|
|
export function StatusBadge(props: StatusBadgeProps): JSX.Element;
|