Stylish Modal Navigation Drawer
A modal navigation drawer with Stylish theme defaults, wrapping the Material 3 ModalNavigationDrawer.
The drawer overlays the content and dims it with scrimColor while open; tapping the scrim, swiping, or pressing back dismisses it. drawerContent is placed inside a ModalDrawerSheet so it inherits the Stylish container colors, shape, elevation, and window insets without any extra setup.
Parameters
The drawer content, typically a list of NavigationDrawerItems, laid out inside the sheet's ColumnScope.
Modifier applied to the ModalNavigationDrawer root.
State of the drawer, controlling open/closed position. Defaults to rememberDrawerState starting DrawerValue.Closed.
When false, swipe gestures do not open or close the drawer. Defaults to true.
Corner shape of the drawer sheet. Defaults to DrawerDefaults.shape (the Material 3 drawer shape).
Background color of the drawer sheet. Defaults to DrawerDefaults.modalContainerColor (surfaceContainerLow), the Material 3 modal drawer spec value.
Default content color of the drawer sheet. Defaults to contentColorFor of containerColor.
Tonal elevation of the drawer sheet. Defaults to DrawerDefaults.ModalDrawerElevation.
WindowInsets consumed by the drawer sheet. Defaults to DrawerDefaults.windowInsets.
Color of the scrim that obscures the content while the drawer is open. Defaults to DrawerDefaults.scrimColor.
The page content behind the drawer, typically the main screen scaffold.