androidx.compose.material3

BottomSheetDefaultsExperimental

Object

No hand-written docs yet.

Contains the default values used by ModalBottomSheet and BottomSheetScaffold.

object BottomSheetDefaults

Properties

HiddenShape

@Composable val HiddenShape: Shape

The default shape for bottom sheets in a Hidden state.

ExpandedShape

@Composable val ExpandedShape: Shape

The default shape for a bottom sheets in PartiallyExpanded and Expanded states.

ContainerColor

@Composable val ContainerColor: Color

The default container color for a bottom sheet.

Elevation

val Elevation: Dp

The default elevation for a bottom sheet.

ScrimColor

@Composable val ScrimColor: Color

The default color of the scrim overlay for background content.

SheetPeekHeight

val SheetPeekHeight: Dp

The default peek height used by BottomSheetScaffold.

SheetMaxWidth

val SheetMaxWidth: Dp

The default max width used by ModalBottomSheet and BottomSheetScaffold

standardWindowInsetsSince 1.11

@Composable val standardWindowInsets: WindowInsets

Default insets to be used and consumed by the BottomSheet's content.

modalWindowInsetsSince 1.11

@Composable val modalWindowInsets: WindowInsets

Default insets to be used and consumed by the ModalBottomSheet's content.

Functions

DragHandle

@Composable
fun DragHandle(
    modifier: Modifier = Modifier,
    width: Dp = SheetBottomTokens.DockedDragHandleWidth,
    height: Dp = SheetBottomTokens.DockedDragHandleHeight,
    shape: Shape = MaterialTheme.shapes.extraLarge,
    color: Color = SheetBottomTokens.DockedDragHandleColor.value,
)

The optional visual marker placed on top of a bottom sheet to indicate it may be dragged.

Library docs

Contains the default values used by ModalBottomSheet and BottomSheetScaffold.