Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas metus nulla, commodo a sodales sed, dignissim pretium nunc. Nam et lacus neque. Ut enim massa, sodales tempor convallis et, iaculis ac massa.
The Material Design Lite (MDL) badge component is an onscreen notification element. A badge consists of a small circle, typically containing a number or other characters, that appears in proximity to another object. A badge can be both a notifier that there are additional items associated with an object and an indicator of how many items there are.
You can use a badge to unobtrusively draw the user's attention to items they might not otherwise notice, or to emphasize that items may need their attention.
MDL class | Effect | Remarks |
---|---|---|
mdl-badge |
Defines badge as an MDL component | Required on span or link |
mdl-badge--no-background |
Applies open-circle effect to badge | Optional |
mdl-badge--overlap |
Make the badge overlap with its container | Optional |
data-badge="value" |
Assigns string value to badge | Not a class, but a separate attribute; required on span or link |