NavigationRail

fun NavigationRail(modifier: Modifier = Modifier, header: @Composable ColumnScope.() -> Unit? = null, color: Color = MiuixTheme.colorScheme.surface, showDivider: Boolean = true, defaultWindowInsetsPadding: Boolean = true, minWidth: Dp = NavigationRailDefaults.MinWidth, mode: NavigationRailDisplayMode = NavigationRailDisplayMode.IconAndText, content: @Composable ColumnScope.() -> Unit)

A NavigationRail that is suitable for wide screens.

Parameters

modifier

The modifier to be applied to the NavigationRail.

header

The header of the NavigationRail, usually a FloatingActionButton or a logo.

color

The color of the NavigationRail.

showDivider

Whether to show the divider line between the NavigationRail and the content.

defaultWindowInsetsPadding

whether to apply default window insets padding to the NavigationRail.

minWidth

The minimum width of the NavigationRail.

content

The content of the NavigationRail, usually NavigationRailItems.