StylishDismissibleNavigationDrawer

fun StylishDismissibleNavigationDrawer(drawerContent: @Composable ColumnScope.() -> Unit, modifier: Modifier = Modifier, drawerState: DrawerState = rememberDrawerState(DrawerValue.Closed), gesturesEnabled: Boolean = true, shape: Shape = DrawerDefaults.shape, containerColor: Color = DrawerDefaults.standardContainerColor, contentColor: Color = contentColorFor(containerColor), tonalElevation: Dp = DrawerDefaults.DismissibleDrawerElevation, windowInsets: WindowInsets = DrawerDefaults.windowInsets, content: @Composable () -> Unit)

A dismissible navigation drawer with Stylish theme defaults, wrapping the Material 3 DismissibleNavigationDrawer.

The drawer sits at the screen edge and stays visible until the user dismisses it; while open it does not dim the content. On wide screens prefer StylishPermanentNavigationDrawer. drawerContent is placed inside a DismissibleDrawerSheet 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 DismissibleNavigationDrawer root.

drawerState

State of the drawer, controlling open/closed position. Defaults to rememberDrawerState starting DrawerValue.Closed.

gesturesEnabled

When false, swipe gestures do not open or close the drawer. Defaults to true.

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.DismissibleDrawerElevation.

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