npm.io
5.1.1 • Published 5 months ago

@spark-web/badge

Licence
Version
5.1.1
Deps
6
Size
32 kB
Vulns
0
Weekly
0

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