tab
abstract fun tab(label: UiText, selected: Boolean, width: Int, enabled: Boolean, indicator: TabSelectionIndicator, customIndicator: Element?, modifier: Modifier, key: ElementKey<*>?): Element(source)
Creates one profile-backed tab element with an optional selected custom indicator root.
Return
an immutable retained-element description owned by the caller.
Parameters
label
unresolved label retained for drawing and semantics.
selected
externally owned selected state.
width
fixed logical tab width.
enabled
whether enabled pixels and semantics are used.
indicator
selected-state presentation policy.
customIndicator
optional caller-owned selected indicator description.
modifier
active behavior, including caller-owned actions.
key
optional stable sibling identity.