ToolbarItemState

data class ToolbarItemState(val isEnabled: Boolean = true, val isSelected: Boolean = false, val isVisible: Boolean = true)

Per-item dynamic state. Split from ToolbarItem so enabled/selected changes recompose only the affected button (loophole P1-13).

Constructors

Link copied to clipboard
constructor(isEnabled: Boolean = true, isSelected: Boolean = false, isVisible: Boolean = true)

Types

Link copied to clipboard
object Companion

Factory holder for common ToolbarItemState values.

Properties

Link copied to clipboard

Whether the item accepts input. Disabled items are dimmed and ignore taps.

Link copied to clipboard

Whether the item is shown in its active/selected appearance.

Link copied to clipboard

Whether the item participates in layout at all. Hidden items are removed from the row.