The ui5-avatar-badge component is used to display a badge on top of ui5-avatar component.
The badge can display an icon and supports different states for visual affordance.
Defines the color scheme of the badge using the indication color palette. Available options are "1" through "10", matching the indication colors. Note:state takes precedence - when state is set to any value other than None, the semantic state styling applies and colorScheme is ignored.
Defines the icon name to be displayed inside the badge. Note: You should import the desired icon first, then use its name as "icon". import "@ui5/webcomponents-icons/dist/{icon_name}.js"
Defines the state of the badge, which determines its styling. Available options: - None (default) - Standard appearance - Positive - Green, used for success/approved states - Critical - Orange, used for warning states - Negative - Red, used for error/rejected states - Information - Blue, used for informational states Note:state takes precedence over colorScheme. When state is set to any value other than None, the semantic styling applies and colorScheme is ignored.
Defines the tooltip text of the badge icon. Note: If not provided, the badge uses the icon accessible name. If no icon accessible name is available, a generic fallback text is used.
The AvatarBadge supports an extended color palette via the colorScheme property. Use values "1" through "10" to apply indication colors — vivid background, border, and text tones drawn from the SAP indication color tokens, with a subtle box shadow to enhance visibility.