Fusuma

Components / Composite

icon_badge

The icon with count on it.

Try it

This is the Bars page of the gallery, running in your browser: icon_badge is on it, and it is the real widget. Press Run, then use it.

Live: Bars, where icon_badge is usedOpen full size

Also on this pagetop_bartoolbarfabsearch_barmarksnavigation_bartoggle_groupchip_groupbutton_groupavatar_group

The icon with count on it.

Signature

pub const fn icon_badge(icon: Icon, count: u16) -> IconBadge

Example

use fusuma::{Icon, icon_badge};
let view = icon_badge(Icon::Bell, 3);
let built = fusuma::doc::built::<(), _>(&view);
assert!(built.nodes() >= 1);

All components · Source