Zeyn components
A menu bar of commands.
use zeyn::prelude::*; pub fn overview(_ctx: &Ctx) -> Node { let hello = Command::effect("cx.hello", "Say hello", Effect::Toast { message: "Hello".into() }); let home = Command::navigate("cx.home", "All components", crate::catalog_home, Default::default()); MenuBar::new("Main menu") .menu("File", |m| m.command(hello)) .menu("Go", |m| m.command(home)) .into() }