0.1.0 • Published 11 months ago

@spark-web/badge v0.1.0

Weekly downloads
-
License
-
Repository
github
Last release
11 months ago

title: Badge

isExperimentalPackage: true

A badge is a decorative indicator used to either call attention to an item or for communicating non-actionable, supplemental information.

Example

<Badge tone="info">Label</Badge>

Tones

const tones = ['accent', 'caution', 'critical', 'info', 'neutral'];

return (
  <Inline gap="small">
    {tones.map(tone => (
      <Badge key={tone} tone={tone}>
        {tone}
      </Badge>
    ))}
  </Inline>
);

Props

Badge

IndicatorDot