Checkboxes

checkbox

Checkboxes are used to let a user select one or more items from a set. Also, Checkboxes can be used to turn an option on or off.

Usage

checkbox

XelaCheckbox(
    label:"Label",
    caption: "caption"
)

Properties

Name Type Default Value Required Description
label String NO Label string for checkbox
caption String NO Caption string for checkbox
value String NO Value string for checkbox, right position
selectedColor Color Color(xelaColor: .Blue3) NO Color for selected checkbox
defaultColor Color Color(xelaColor: .Gray11) NO Color for unselected checkbox
valueColor Color Color(xelaColor: .Red3) NO Color for value string
size XelaCheckboxSize .Large NO Size for checkbox (.Large, .Medium, .Small)
state XelaCheckboxState .Default NO State for checkbox (.Default, .Selected)
disabled Bool false NO Disable for checkbox
indeterminate Bool false NO Will change checkbox type to indeterminate
labelColor Color Color(xelaColor: .Gray2) NO Color for label string
captionColor Color Color(xelaColor: .Gray8) NO Color for caption string