use ui::widgets::Layout;
theme.tab_bar().children(TABS.iter().enumerate().map(|(index, label)| {
theme.tab(*label, index == self.tab)
.id(SharedString::from(format!("tab-{index}")))
.on_click(cx.listener(move |view, _, _, cx| view.select(index, cx)))
}))- The bar holds the tabs only; render the selected panel under it yourself.
- Keys are the caller's: wrap each tab in
focus::focusableand handlefocus::Decrement/focus::Incrementfor←/→. Move focus with the selection. - Tabs that open and close are tab strip; picking a value is toggle group.