Docs
Components/Forms/Checkbox

Checkbox

A toggleable checkmark with an optional label.

s0 add checkbox

Usage

@State private var agreed = false

S0.Checkbox("I agree to the terms", isChecked: $agreed)
S0.Checkbox(isChecked: $isSelected)

Parameters

NameTypeDefaultDescription
labelString?nilOptional label next to the checkbox.
isCheckedBinding<Bool>Binding to the checked state.