pub fn badge_with_content() -> BadgeWithContentBuilderExpand description
§badge_with_content
Renders a badge that contains short content, such as a number.
§Usage
Display compact counts (for example, unread messages) on top of navigation icons.
§Parameters
container_color— optional background color of the badge.content_color— optional preferred content color for descendants.content— optional content slot rendered inside the badge.modifier— layout, drawing, and accessibility configuration.
§Examples
use tessera_components::badge::badge_with_content;
use tessera_ui::Color;
badge_with_content()
.content_color(Color::WHITE)
.content(|| {});