Skip to main content

AdaptiveNav

Function AdaptiveNav 

Source
pub fn AdaptiveNav(_: AdaptiveNavProps) -> Element
Expand description

Navigation that is a bottom bar on compact shells and a side rail on wide ones. Put it last inside a TabLayout.

With the transitions feature, the rail is persistent route-transition chrome inside an AppWrapper: it stays still while pages slide, as long as the routes on both sides render it.

ยงProps

For details, see the props struct definition.

  • compact : Option<AdaptiveNavCompact>

    What to show on compact shells. Defaults to a bottom bar.

  • aria_label : Option<String>

    Accessible name. Defaults to Strings::primary_navigation.

  • mode : Option<ComponentMode>

    Platform look. Defaults to the ambient mode.

  • class : Option<String>

    Extra classes for the nav element.

  • children : Element