pub fn Tabs(_: TabsProps) -> ElementExpand description
A row of tabs. Each child is one tab.
selected_index seeds the Renderer’s selection and moves it when the Host changes it.
Tapping a tab changes the selection in the Renderer and reports it by firing that tab’s
own on_click, so switching tabs costs one event and no re-render of the tab strip.
§Props
For details, see the props struct definition.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>color:Option<Paint>The colour of the mark that shows which tab is selected.
The design system decides where this is unset, which is what an adaptive application wants. A unified one names it, because its reference may have no accent at all and a system asked the question answers with its own.
shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolselected_index:usizechildren:Element