Skip to main content

CamoSideSheet

A panel on the end edge for secondary content next to the main screen: properties, filters, details. Placed in a layout it is the standard (docked) mode, and the main content stays usable; inside a CamoModalSideSheet it is the modal one. title names it for screen readers; onClose adds a close button (and is what dismissing the modal one asks for). The content scrolls; the actions stay at the bottom.

API​

public fun CamoSideSheet(
modifier: Modifier = Modifier,
title: String? = null,
onClose: (() -> Unit)? = null,
actions: (@Composable RowScope.() -> Unit)? = null,
content: @Composable ColumnScope.() -> Unit,
)
NameTypeDefault
modifierModifierModifier
titleString?null
onClose(() -> Unit)?null
actions(@Composable RowScope.() -> Unit)?null
content@Composable ColumnScope.() -> Unitrequired
Design notes

Why CamoSideSheet works this way, its states and its edge cases: contributor docs.