StylishPermanentNavigationDrawer

fun StylishPermanentNavigationDrawer(drawerContent: @Composable ColumnScope.() -> Unit, modifier: Modifier = Modifier, shape: Shape = DrawerDefaults.shape, containerColor: Color = DrawerDefaults.standardContainerColor, contentColor: Color = contentColorFor(containerColor), tonalElevation: Dp = DrawerDefaults.PermanentDrawerElevation, windowInsets: WindowInsets = DrawerDefaults.windowInsets, content: @Composable () -> Unit)

A permanent navigation drawer with Stylish theme defaults, wrapping the Material 3 PermanentNavigationDrawer.

The drawer is always visible at the start edge beside the content and never dismisses — use it on wide screens only. drawerContent is placed inside a PermanentDrawerSheet so it inherits the Stylish container colors, shape, elevation, and window insets without any extra setup.

Parameters

drawerContent

The drawer content, typically a list of NavigationDrawerItems, laid out inside the sheet's ColumnScope.

modifier

Modifier applied to the PermanentNavigationDrawer root.

shape

Corner shape of the drawer sheet. Defaults to DrawerDefaults.shape (the Material 3 drawer shape).

containerColor

Background color of the drawer sheet. Defaults to DrawerDefaults.standardContainerColor (surface), the Material 3 standard drawer spec value.

contentColor

Default content color of the drawer sheet. Defaults to contentColorFor of containerColor.

tonalElevation

Tonal elevation of the drawer sheet. Defaults to DrawerDefaults.PermanentDrawerElevation.

windowInsets

WindowInsets consumed by the drawer sheet. Defaults to DrawerDefaults.windowInsets.

content

The page content beside the drawer, typically the main screen scaffold.

See also