StylishBottomSheet

fun StylishBottomSheet(onDismiss: () -> Unit, modifier: Modifier = Modifier, skipPartiallyExpanded: Boolean = false, sheetState: SheetState = rememberModalBottomSheetState( skipPartiallyExpanded = skipPartiallyExpanded, ), shape: Shape = RoundedCornerShape( topStart = StylishTheme.dimensions.connectedCornerRadius, topEnd = StylishTheme.dimensions.connectedCornerRadius, ), containerColor: Color = MaterialTheme.colorScheme.surface, contentColor: Color = MaterialTheme.colorScheme.onSurface, tonalElevation: Dp = 1.dp, scrimColor: Color = BottomSheetDefaults.ScrimColor, dragHandle: @Composable () -> Unit? = null, contentWindowInsets: @Composable () -> WindowInsets = { BottomSheetDefaults.windowInsets }, properties: ModalBottomSheetProperties = ModalBottomSheetProperties(), content: @Composable ColumnScope.() -> Unit)

A modal bottom sheet styled with the Stylish design language — rounded top corners from StylishTheme.dimensions.connectedCornerRadius and theme-aware container colors.

Wraps Material 3 ModalBottomSheet with Stylish defaults.

Parameters

onDismiss

Called when the sheet is dismissed (swipe down, tap outside, or back gesture).

modifier

Modifier applied to the ModalBottomSheet.

skipPartiallyExpanded

Whether the partially-expanded state should be skipped, so the sheet always opens fully expanded. Applied to the default sheetState; ignored when a custom sheetState is supplied.

sheetState

The state of the sheet. Defaults to rememberModalBottomSheetState honoring skipPartiallyExpanded.

shape

Corner shape of the sheet. Defaults to RoundedCornerShape with StylishTheme.dimensions.connectedCornerRadius on the top corners only.

containerColor

Background color of the sheet.

contentColor

Default content color.

tonalElevation

Tonal elevation of the sheet surface.

scrimColor

Color of the scrim that obscures content while the sheet is open. Defaults to BottomSheetDefaults.ScrimColor.

dragHandle

Optional drag handle composable. When null (the default), no drag handle is shown. Pass @Composable { BottomSheetDefaults.DragHandle() } for the M3 default handle, or custom content for a bespoke one.

contentWindowInsets

WindowInsets consumed by the sheet's content area so it clears system bars. Defaults to BottomSheetDefaults.windowInsets.

properties

Window behavior of the sheet (dismiss on back press / scrim click). Defaults to ModalBottomSheetProperties.

content

The sheet content, laid out inside a ColumnScope.

See also