Stylish Bottom Sheet Scaffold
A scaffold with a bottom sheet, wrapping the Material 3 BottomSheetScaffold with Stylish defaults.
The scaffold hosts a persistent, partially expandable sheetContent above a full-screen content area, with optional topBar and snackbarHost slots. The sheet's top corners use StylishTheme.dimensions.connectedCornerRadius, matching com.segnities007.stylishui.components.organisms.StylishBottomSheet.
Parameters
The sheet content, laid out inside a ColumnScope.
Modifier applied to the BottomSheetScaffold root.
State of the scaffold (sheet + snackbar host). Defaults to rememberBottomSheetScaffoldState.
Height of the sheet in its peek (collapsed) state. Defaults to BottomSheetDefaults.SheetPeekHeight.
Maximum width of the sheet. Defaults to BottomSheetDefaults.SheetMaxWidth.
Corner shape of the sheet. Defaults to RoundedCornerShape with StylishTheme.dimensions.connectedCornerRadius on the top corners only.
Background color of the sheet. Defaults to MaterialTheme.colorScheme.surface.
Default content color of the sheet. Defaults to contentColorFor of sheetContainerColor.
Tonal elevation of the sheet. Defaults to 0 dp (the M3 spec value).
Shadow elevation of the sheet. Defaults to BottomSheetDefaults.Elevation.
Optional drag handle composable. When null (the default), no drag handle is shown. Pass @Composable { BottomSheetDefaults.DragHandle() } for the M3 default handle.
When false, the sheet cannot be swiped up or down. Defaults to true.
Optional top bar rendered above the content, e.g. a StylishTopAppBar. When null, no top bar is shown.
Composable that renders transient messages using the SnackbarHostState of scaffoldState. Defaults to the M3 SnackbarHost.
Background color behind all content. Defaults to MaterialTheme.colorScheme.surface.
Default content color propagated to content. Defaults to contentColorFor of containerColor.
Main page content. Receives the PaddingValues that account for the top bar and the sheet; apply them via Modifier.padding.