pub fn badge() -> BadgeBuilderExpand description
§badge
Renders an icon-only badge.
§Usage
Mark an icon as having new activity without showing a numeric count.
§Parameters
container_color— optional background color of the badge.content_color— optional preferred content color for descendants.modifier— layout, drawing, and accessibility configuration.
§Examples
use tessera_components::badge::badge;
use tessera_ui::Color;
badge().content_color(Color::WHITE);