Function freya_components::Tab 
source · pub fn Tab(__props: TabProps) -> ElementExpand 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.