Skip to main content

badged_box

Function badged_box 

Source
pub fn badged_box() -> BadgedBoxBuilder
Expand description

§badged_box

Positions a badge relative to an anchor element.

§Usage

Display counts or status indicators on top of icons in navigation or toolbars.

§Parameters

  • badge — badge slot rendered on top of content.
  • content — anchor content slot.
  • modifier — layout, drawing, and accessibility configuration.

§Examples

tessera_ui::testing::layout_test(|| {
    tessera_components::badge::badged_box();
}).run();