ModalNavigationDrawer

fun ModalNavigationDrawer(drawerContent: @Composable () -> Unit, modifier: Modifier = Modifier, drawerState: DrawerState = rememberDrawerState(DrawerValue.Closed), gesturesEnabled: Boolean = true, scrimColor: Color = SparkTheme.colors.scrim, content: @Composable () -> Unit)(source)

Spark ModalNavigationDrawer.

A ModalNavigationDrawer provides ergonomic access to destinations in an app. Modal navigation drawers block interaction with the rest of the UI using a scrim. They float above most content and do not affect the screen’s layout grid.

ModalNavigationDrawer image

Parameters

drawerContent

content inside this drawer

modifier

the Modifier to be applied to this drawer

drawerState

state of the drawer

gesturesEnabled

whether or not the drawer can be interacted by gestures

scrimColor

color of the scrim that obscures content when the drawer is open

content

content of the rest of the UI