Badge

Display notification counts

Demo

API

Tag

Name Type Content
m-badge Custom tag None

Attributes

Name Value Description
count required Number The number to display. If zero, empty, or if this attribute is missing, then Badge will hide itself.

Guidelines

Localization

Localize the count value before setting it.

Accessibility

Use aria-labelledby or aria-label to provide context for the count.