pub fn Tab(_: TabProps) -> Result<VNode, RenderError>Expand description
Clickable Tab. Usually used in combination with Tabsbar, crate::Link and [crate::ActivableRoute].
§Styling
Inherits the TabTheme theme.
§Example
fn app() -> Element {
rsx!(
Tabsbar {
Tab {
label {
"Home"
}
}
Link {
to: Route::Settings,
Tab {
label {
"Settings"
}
}
}
}
)
}§Preview
§Props
For details, see the props struct definition.