Compose Component

DismissibleNavigationDrawer

Navigation drawers provide ergonomic access to destinations in an app.

DismissibleNavigationDrawer social preview

DismissibleNavigationDrawer

Source set: Common
@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

Last updated: