Joined buttons of which any number is on (bold, italic, underline); pressing one sends on_toggle(index) and the app flips it in on.
Signature
pub const fn toggle_group<'a, M>( labels: &'a [&'a str], on: u32, on_toggle: fn(usize) -> M, ) -> Choices<'a, M>Example
use fusuma::{marks, toggle_group};
let (bold, italic) = (true, false);
let view = toggle_group(&["Bold", "Italic"], marks(&[bold, italic]), |i| i);
let built = fusuma::doc::built::<usize, _>(&view);
assert_eq!(built.texts(), ["Bold", "Italic"]);