Skip to main content

Tabs

Function Tabs 

Source
pub fn Tabs(_: TabsProps) -> Element
Expand 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.