-modal-navigation-drawer.md 2.2 KB

//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](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html)() -&gt; [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) = {
    Box(
        modifier = Modifier.fillMaxSize()
    )
})