androidx.compose.material3

AppBarColumnSince 1.9

Composable function

One of the types and parts. It works like AppBarRow. Only the parameters that differ are described here.

The same as AppBarRow, but the items go top to bottom. Use it in a vertical toolbar or a rail.

Actions in a column; extra ones go into a menuExpressive theme
Actions in a column; extra ones go into a menu
AppBarColumn(maxItemCount = 3) {
    clickableItem(onClick = {}, icon = { Icon(Icons.Filled.Edit, null) }, label = "Edit")
    clickableItem(onClick = {}, icon = { Icon(Icons.Filled.Share, null) }, label = "Share")
    clickableItem(onClick = {}, icon = { Icon(Icons.Filled.Favorite, null) }, label = "Favorite")
    clickableItem(onClick = {}, icon = { Icon(Icons.Filled.Settings, null) }, label = "Settings")
}

Parameters

@Composable
fun AppBarColumn(
    modifier: Modifier = Modifier,
    overflowIndicator: @Composable (AppBarMenuState) -> Unit = { menuState -> AppBarOverflowIndicator(menuState) },
    maxItemCount: Int = Int.MAX_VALUE,
    content: AppBarColumnScope.() -> Unit,
)

content: AppBarColumnScope.() -> UnitRequired

The items. Add them with clickableItem(onClick, icon, label), toggleableItem(...) or customItem(...).

Same as in AppBarRow: modifier, overflowIndicator, maxItemCount.

Types and parts