Checkbox

fun TileSchemaBuilderScope.Checkbox(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = { size( width = wrapHorizontally(), height = wrapVertically() ) }, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, checked: Boolean = false, enabled: Boolean = true)

Renders a bare Material 3 checkbox reflecting checked. Draws only the box — no label — so pair it with a SimpleText inside a Row when a caption is needed. Toggling flips checked locally on the client (no round trip needed for the new value to take effect), then dispatches onCheck (when it becomes checked) or onUncheck (when it becomes unchecked), always followed by onCheckChanged. The current checked value can be read from this tile by its id via GetData.

Parameters

id

Unique identifier of the tile. Defaults to a random id.

events

Events owned by this tile, wired to its triggers (onCheck, onUncheck, onCheckChanged).

style

Layout/appearance modifiers (size, padding, background, etc). Defaults to wrapping its content.

visibility

Whether the tile is shown, hidden but occupies space, or removed from layout. Defaults to visible.

searchableTerms

Terms used by an ancestor's search/filter to decide whether this tile matches. Defaults to none.

checked

Whether the checkbox starts checked. Defaults to false.

enabled

Whether the checkbox is interactive. Defaults to true.