Function freya::components::BottomTab

source ·
pub fn BottomTab(__props: BottomTabProps) -> Option<VNode>
Expand description

Clickable BottomTab. Same thing as Tab but designed to be placed in the bottom of your app, usually used in combination with Tabsbar, [Link] and [ActivableRoute].

§Styling

Inherits the BottomTabTheme theme.

§Example

fn app() -> Element {
    rsx!(
        Tabsbar {
            BottomTab {
                label {
                    "Home"
                }
            }
            Link {
                to: Route::Settings,
                BottomTab {
                    label {
                        "Go to Settings"
                    }
                }
            }
        }
    )
}