Skip to main content

CamoToolbar

A row of actions for the current context: formatting buttons in an editor, the bar under a message list. Actions that don't fit collapse, in order, into a trailing "more" menu (a toggle there becomes a checkable item). leading and trailing (a menu button, a title, a primary action) always show; custom content such as button groups goes there or in a CamoToolbarContainer. One Tab stop: the arrow keys move between the actions. contentDescription names the toolbar. A toolbar is neither navigation nor a title bar.

API​

public fun CamoToolbar(
actions: List<CamoToolbarAction>,
modifier: Modifier = Modifier,
placement: ToolbarPlacement? = null,
contentDescription: String? = null,
overflowLabel: String = "More",
leading: (@Composable () -> Unit)? = null,
trailing: (@Composable () -> Unit)? = null,
)
NameTypeDefault
actionsList<CamoToolbarAction>required
modifierModifierModifier
placementToolbarPlacement?null
contentDescriptionString?null
overflowLabelString"More"
leading(@Composable () -> Unit)?null
trailing(@Composable () -> Unit)?null
Design notes

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