package com.louiscad.splitties.eap.bottomsheet.example @Composable fun BottomSheetExample() { val modalState = rememberModalState() val coroutineScope = rememberCoroutineScope() Button( onClick = { coroutineScope.launch { modalState.show() } } ) { Text("Open the bottom sheet!") } ModalBottomSheet(modalState = modalState) { Surface { Text("Your content here") Button( onClick = { coroutineScope.launch { modalState.hide() } ) { Text("Dismiss it!") } Spacer(Modifier.navigationBarsPadding()) } } }