androidx.compose.material3

AppBarScopeSince 1.9

Sealed interface

No hand-written docs yet.

DSL scope for building the content of an AppBarRow and AppBarColumn.

sealed interface AppBarScope

Kinds of AppBarScope

Anywhere a AppBarScope is expected, you can pass any of these.

How to get one

Or create one of the kinds listed above.

Functions

clickableItem

fun clickableItem(
    onClick: () -> Unit,
    icon: @Composable () -> Unit,
    label: String,
    enabled: Boolean = true,
)

Adds a clickable item to the AppBarRow or AppBarColumn.

toggleableItem

fun toggleableItem(
    checked: Boolean,
    onCheckedChange: (Boolean) -> Unit,
    icon: @Composable () -> Unit,
    label: String,
    enabled: Boolean = true,
)

Adds a toggleable item to the AppBarRow or AppBarColumn.

customItem

fun customItem(
    appbarContent: @Composable () -> Unit,
    menuContent: @Composable (AppBarMenuState) -> Unit,
)

Adds a custom item to the AppBarRow or AppBarColumn.

Library docs

DSL scope for building the content of an AppBarRow and AppBarColumn.