Components / SelectionBar
SelectionBar
How many are chosen, a way out and what to do with them, with Escape to leave.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn selection_bar() -> impl View {
SelectionBar::new(3)
.on_exit(|| {})
.action(ToolbarAction::new("Copy").icon(IconName::Copy).icon_only().on_click(|| {}))
.action(ToolbarAction::new("Favorite").icon(IconName::Star).icon_only().on_click(|| {}))
.width(420.0)
}