checkbox

abstract fun checkbox(label: UiText, state: CheckboxState, width: Int, enabled: Boolean, modifier: Modifier, key: ElementKey<*>?): Element(source)

Creates one profile-backed Checkbox with caller-owned selected state.

Return

immutable retained description referencing but not owning state.

Parameters

label

unresolved visible and semantic label.

state

caller-owned owner-thread selected state.

width

maximum fixed logical width.

enabled

whether input and enabled semantics are active.

modifier

active behavior including typed component actions.

key

optional stable sibling identity.