androidx.compose.material3

PermanentDrawerSheet

Composable function

A part of ModalNavigationDrawer. See that page for an overview and examples.

Parameters

@Composable
fun PermanentDrawerSheet(
    modifier: Modifier = Modifier,
    drawerShape: Shape = RectangleShape,
    drawerContainerColor: Color = DrawerDefaults.standardContainerColor,
    drawerContentColor: Color = contentColorFor(drawerContainerColor),
    drawerTonalElevation: Dp = DrawerDefaults.PermanentDrawerElevation,
    windowInsets: WindowInsets = DrawerDefaults.windowInsets,
    content: @Composable ColumnScope.() -> Unit,
)

drawerShape: ShapeOptional

Default: RectangleShape

Sets the outline of the sheet.

drawerContainerColor: ColorOptional

Default: DrawerDefaults.standardContainerColor

The background color of the sheet.

drawerContentColor: ColorOptional

Default: contentColorFor(drawerContainerColor)

The default color for text and icons in the sheet.

drawerTonalElevation: DpOptional

Default: DrawerDefaults.PermanentDrawerElevation

Tints the sheet a little toward the primary color.

windowInsets: WindowInsetsOptional

Default: DrawerDefaults.windowInsets

Space kept free for system bars inside the sheet.

content: @Composable ColumnScope.() -> UnitRequired

The screen behind the drawer. For a sheet, the items inside it, placed in a Column.

Same as in ModalNavigationDrawer: modifier.

Drawer types and parts