JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4751
  • Score
    100M100P100Q135699F
  • License MIT

Package Exports

  • @s-ui/react-molecule-badge-counter
  • @s-ui/react-molecule-badge-counter/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@s-ui/react-molecule-badge-counter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MoleculeBadgeCounter

MoleculeBadgeCounter is a component used for warning the user about new content or updates

documentation issue npm

Issues open NPM

Installation

$ npm install @s-ui/react-molecule-badge-counter --save

Usage

import MoleculeBadgeCounter, {
  moleculeBadgeCounterVariants,
  moleculeBadgeCounterSizes
} from '@s-ui/react-molecule-badge-counter'

Basic (Small)

<MoleculeBadgeCounter />

Dot Variant

<MoleculeBadgeCounter variant={moleculeBadgeCounterVariants.DOT} />

With Text

<MoleculeBadgeCounter>Text</MoleculeBadgeCounter>

With Icon

<MoleculeBadgeCounter>
  <Icon />
</MoleculeBadgeCounter>

Medium Size

<MoleculeBadgeCounter size="medium" />

Exclamation Variant

<MoleculeBadgeCounter
  variant={moleculeBadgeCounterVariants.EXCLAMATION}
  size={moleculeBadgeCounterSizes.MEDIUM}
/>

Extended Variant

<MoleculeBadgeCounter
  variant={moleculeBadgeCounterVariants.EXTENDED}
  size={moleculeBadgeCounterSizes.MEDIUM}
/>

Labels

<MoleculeBadgeCounter label="4" />
<MoleculeBadgeCounter label="42" />
<MoleculeBadgeCounter label="142" />

Find full description and more examples in the demo page.