Components
Checkbox
A checkbox allows users to make a binary choice, i.e. a choice between one of two possible mutually exclusive options.
Viewmodels
CheckboxVM
labelArtboardartboardDetermines which component is used for the Label.
controlArtboardartboardDetermines which component is used to visualize the checkbox's visuals.
checkedbooleanThe controlled checked state of the checkbox.
labelstringSpecifies the localized strings that identifies the checkbox.
hoverbooleanIndicates when the pointer overlaps with the Checkbox.
disabledbooleanDetermines whether the checkbox is disabled.
invalidbooleanDetermines whether the checkbox is invalid. Use if the choice is incompatible with the current context.
directionEnumDetermines if the checkbox is oriented left-to-right or right-to-left.
Hierarchical Structure
checkbox_component
- Root - The Root of the component.
- Control - A Layout containing the Control Artboard. All pointer functionality targets this layout.
- A Component Instance of controlArtboard.
- Label - A Layout containing a component instance of the Label Artboard.
- A Component Instance of labelArtboard.
- Control - A Layout containing the Control Artboard. All pointer functionality targets this layout.
checkmark_control
- Root - The Root of the component.
- Container - A group containing the shape used to indicate the checkmark. This group prevents its parent layout from distorting the shape.
- Shape Layout - Contains a shape representing the Checkbox's checkmark.
- Checkmark - A shape depicting a checkmark.
- Shape Layout - Contains a shape representing the Checkbox's checkmark.
- Container - A group containing the shape used to indicate the checkmark. This group prevents its parent layout from distorting the shape.
Animations
This component contains four pairs of animations, each on their own layer.
- Checked
- CheckedTrue - Indicates the Checkbox is checked. Plays if (checked = true).
- CheckedFalse - Indicates the Checkbox is unchecked. Plays if (checked = false).
- Disabled
- DisabledTrue - Indicates the Checkbox cannot be interacted with. Plays if (disabled = true).
- DisabledFalse - Indicates the Checkbox can be interacted with. Plays if (disabled = false).
- Hover
- HoverTrue - Indicates the pointer overlaps with the Checkbox. Plays if (hover = true).
- HoverFalse - Indicates the pointer does not overlap with the Checkbox. Plays if (hover = false).
- Invalid
- InvalidTrue - Indicates the checkbox is invalid. Plays if (invalid = true).
- InvalidFalse - Indicates the checkbox is not invalid. Plays if (invalid = false).
text_label
- Root - The Root of the component.
- Text Layout - A Layout containing a Text Element.
- Text - A text element. The value of its Text Run is bound to label.
- Text Layout - A Layout containing a Text Element.
Best Practices
- checkbox_component hugs its content. In the event you create a new control artboard for it, you may want to adjust the layout settings to ensure consistent sizing.
