@spark-web/badge
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Dependencies (6)

Dev Dependencies (2)

Package Sidebar

Install

npm i @spark-web/badge

Weekly Downloads

447

Version

0.1.0

License

none

Unpacked Size

16.3 kB

Total Files

10

Last publish

Collaborators

  • brighte
  • brighte-release-bot