Fusuma

Components / Composite

toolbar

A row of tools in a raised strip: buttons, a divider, a switch.

Try it

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

Live: Bars, where toolbar is usedOpen full size

Also on this pagetop_baricon_badgefabsearch_barmarksnavigation_bartoggle_groupchip_groupbutton_groupavatar_group

A row of tools in a raised strip: buttons, a divider, a switch.

Signature

pub fn toolbar<'a, M: Clone + 'a, C: Children<M> + 'a>(tools: C) -> impl View<M> + 'a

Example

use fusuma::{button, divider, toolbar};
let view = toolbar((button("Cut"), button("Copy"), divider(), button("Paste")));
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.texts(), ["Cut", "Copy", "Paste"]);

All components · Source