Checkbox

fun UiScope.Checkbox(label: UiText, state: CheckboxState, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Emits one Minecraft-profile Checkbox backed by caller-owned state.

Native pointer and focused keyboard input update the state before emitting dev.s7a.strata.action.ComponentActions.CheckedChange through the Modifier chain.

Receiver

active owner-thread screen scope.

Parameters

label

unresolved visible and semantic label.

state

caller-owned selected state.

width

maximum fixed logical width including the 20-pixel box and four-pixel gap.

enabled

whether input and enabled semantics are active.

modifier

active layout, input, and typed action behavior.

key

optional stable sibling identity.


fun UiScope.Checkbox(label: String, state: CheckboxState, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Literal-label overload of Checkbox.