Use the indicator component to show a number count, account status, or as a loading label positioned relative to the parent component.
Indicators work within badges, buttons, and other elements and can be used as a small element positioned absolutely relative to one of these to show a number count, account status (e.g., red for offline, green for online) and other useful information.
Default indicator
Semantic and product color indicators can be used anywhere you need to indicate a status or minmized label. These color classes apply to all of the various indicators listed here and always use the same class.
Legend indicator
This option is similar to a simple indicator but adds a label. These can be used as chart legends or another type of label or category.
Count indicator
Count indicators can be used to show a number count inside the indicator and position it relative to a button component. Use the position classes below to place it anywhere around a parent element.
Note that for product count and label indicators, the background color changes to the product’s tertiary/accent color.
Label indicator
Label indicators are like count indicators but can accept longer text labels instead of just a number. Use these when the text may be variable inside of the indicator and more than just 1 digit or character.
These are also great for “New!” or other similar statuses that require an indicator like this.
Status indicator
Display a status indicator on a user avatar or some other component to indicate online/offline or some other condition or activity status.
Indicator positions
Use convenience classes to position the indicators at 9 different spots.