BottomSheetModal

fun BottomSheetModal(title: String, sheetState: BottomSheetModalState, modifier: Modifier = Modifier, translations: BottomSheetModal.Translations = BottomSheetModal.Translations(), leftContent: @Composable () -> Unit? = null, sheetContent: @Composable () -> Unit, content: @Composable () -> Unit)

User interface element that slides up from the bottom of the screen to present additional content, actions, or options without completely obstructing the current view.

Bottom sheets are typically used to show more information or interact with content while keeping the user's context intact.

The bottom sheet will automatically adjust its height to fit the content:

Parameters

title

the String for the title of the bottom sheet.

sheetState

the BottomSheetModalState of the bottom sheet. Use rememberBottomSheetModalState to create and remember this state.

modifier

optional Modifier to be applied to the BottomSheetModal. Defaults to Modifier.

leftContent

optional content slot left of the title where specific type of content can be dynamically inserted or customized, for instance an icon or logo. Defaults to null.

sheetContent

content slot for the content of the bottom sheet.

content

content slot for the main content of the screen.