ModalWideNavigationRailOverrideScope

Class

Common
@ExperimentalMaterial3ComponentOverrideApi
class ModalWideNavigationRailOverrideScope
internal constructor(
    val modifier: Modifier,
    val state: WideNavigationRailState,
    val shouldHideOnCollapse: Boolean,
    val collapsedShape: Shape,
    val expandedShape: Shape,
    val colors: WideNavigationRailColors,
    val header: @Composable (() -> Unit)?,
    val expandedHeaderTopPadding: Dp,
    val windowInsets: WindowInsets,
    val arrangement: Arrangement.Vertical,
    val expandedProperties: ModalWideNavigationRailProperties,
    val content: @Composable () -> Unit,
)

Parameters available to ModalWideNavigationRail.

Parameters

modifierthe Modifier to be applied to this wide navigation rail
statethe WideNavigationRailState of this wide navigation rail
shouldHideOnCollapsewhether this wide navigation rail should slide offscreen when it collapses and be hidden, or stay on screen as a collapsed wide navigation rail (default)
collapsedShapethe shape of this wide navigation rail's container when it's collapsed
expandedShapethe shape of this wide navigation rail's container when it's expanded
colorsWideNavigationRailColors that will be used to resolve the colors used for this wide navigation rail. See WideNavigationRailDefaults.colors
headeroptional header that may hold a FloatingActionButton or a logo
expandedHeaderTopPaddingthe padding to be applied to the top of the rail. It's usually needed in order to align the content of the rail between the collapsed and expanded animation
windowInsetsa window insets of the wide navigation rail
arrangementthe Arrangement.Vertical of this wide navigation rail
expandedPropertiesModalWideNavigationRailProperties for further customization of the expanded modal wide navigation rail's window behavior
contentthe content of this modal wide navigation rail, usually WideNavigationRailItems