Skip to main content

large_badge

Function large_badge 

Source
pub fn large_badge(
    id: impl Into<ElementId>,
    label: impl Into<SharedString>,
) -> Stateful<Div>
Expand description

M3 large badge: a count or short label on an error pill, label-small on on-error, at least 16dp square and full-round. The caller positions it (12dp across and 14dp down from the icon’s top-trailing corner) and supplies its text, e.g. “3” or “999+”.