Composable Component

DismissibleNavigationDrawer

Navigation drawers provide ergonomic access to destinations in an app.

DismissibleNavigationDrawer social preview
Source set: Common

Added in 1.5.0-alpha17

@Composable
fun DismissibleNavigationDrawer(
    drawerContent: @Composable () -> Unit,
    modifier: Modifier = Modifier,
    drawerState: DrawerState = rememberDrawerState(DrawerValue.Closed),
    gesturesEnabled: Boolean = true,
    content: @Composable () -> Unit,
)

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
content content of the rest of the UI