Checkbox

data class Checkbox(val checked: Boolean, val onCheckedChange: (Boolean) -> Unit = {}, val label: String? = null, val key: String? = null) : Element

Represents a checkbox element.

Constructors

Link copied to clipboard
constructor(checked: Boolean, onCheckedChange: (Boolean) -> Unit = {}, label: String? = null, key: String? = null)

Properties

Link copied to clipboard

Whether the checkbox is checked

Link copied to clipboard
open override val key: String? = null

Optional key for this element

Link copied to clipboard
val label: String? = null

Optional label text

Link copied to clipboard

Callback invoked when checkbox state changes