Skip to main content

tab

Function tab 

Source
pub fn tab(title: &str, system_image: &str, content: View) -> View
Expand description

Tab("Home", systemImage: "house") { … } — one tab of a modern TabView.

The older way to build a tab is .tabItem { Label(…) } on the page itself; Tab is the replacement, where the tab and its label are one value rather than a modifier on the content.

A Tab is not a view — it is a TabContent, and only tab_view_tabs accepts one.