Homecomponentsinformational
Alpha
This component is in development. There could be breaking changes made to it in a non-major release of Prism. Please use with caution.Use Badge to display a count of a dot near a primary element as a highlight. It can be used standalone, or with a primary element where the badge would be automatically placed at its top-right corner.
Count
Use the count property to set the count value. Use the accompaying overflowCount property to set the max count number.
1
99+
Dot
Use the dot property to display just a dot instead of a count. An accompaying color property can be used to change the color.
API
dot
true
false
color
online
offline
unread
count
number
overflowCount
number
children
ReactNode
data
DataAttributeMap