Skip to content

modal navigation drawer

milan jurkulák edited this page May 2, 2024 · 1 revision

//tvlib/org.mjdev.tvlib.ui.components.navigation/ModalNavigationDrawer

ModalNavigationDrawer

[androidJvm]\

@Composable

fun ModalNavigationDrawer(modifier: Modifier = Modifier, drawerState: DrawerState = rememberDrawerState(), scrimColor: Color = Color.Black.copy(alpha = 0.5f), visible: Boolean = true, closeDrawerWidth: Dp = if (visible) 200.dp else 0.dp, contentAlignment: Alignment = Alignment.TopStart, closedDrawerWidth: MutableState<Dp?> = remember { mutableStateOf(null) }, localDensity: Density = LocalDensity.current, onTouchOutside: () -> Unit? = null, drawerContent: @Composable(DrawerValue) -> Unit = { Box( modifier = Modifier.background(Color.LightGray, RectangleShape) ) }, content: @Composable() -> Unit = { Box( modifier = Modifier.fillMaxSize() ) })

Clone this wiki locally