Skip to main content

CheckBox

Function CheckBox 

Source
pub fn CheckBox(_: CheckBoxProps) -> Element
Expand description

Binds a controlled Boolean without guessing its value from a click or stale display.

Rejected edits retire their model installation; explicit host restoration remounts controls so native and primitive checked state return to acceptance.

  • Complexity: O(named cells + label/style bytes) per render or edit.

§Examples

Inside a scope initialized by use_sheet, rsx! { CheckBox { bind: sheet.cell("enabled"), label: "Enabled" } }.

§Props

For details, see the props struct definition.