Skip to main content

Checkbox

Function Checkbox 

Source
pub fn Checkbox(_: CheckboxProps) -> Element
Expand description

A two-state box.

The widget is controlled: it draws exactly what checked says and reports what the user asked for, so the value the Host holds and the box on screen cannot disagree. What the mark looks like, and whether pressing it ripples or dims, is the design system’s rule.

§Props

For details, see the props struct definition.