Navigation Rail
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.
show Divider
Whether to show the divider line between the NavigationRail and the content.
default Window Insets Padding
whether to apply default window insets padding to the NavigationRail.
min Width
The minimum width of the NavigationRail.
content
The content of the NavigationRail, usually NavigationRailItems.