Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
badge.css
badge.html
badge.js
badge.meta
screenshot.png

README.md

Badge

Badge

The Badge can be used as a notification counter or highlighting.

How to use

"badge": {
    "prototype": "digit/ui/badge.reel",
    "properties": {
        "element": {"#": "badge"}
    }
}
<span data-montage-id="badge"></span>

Available properties

  • value - The text of the Badge.

Customizing with CSS

  • .digit-Badge - The Badge element
.digit-Badge {
    background: red;
}

Browser support

  • Chrome (latest)
  • Firefox (latest)
  • Opera (latest)
  • IE 10+
  • Safari 7+