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
| Name | Type | Default | Description |
|---|---|---|---|
| label | String? | nil | Optional label next to the checkbox. |
| isChecked | Binding<Bool> | — | Binding to the checked state. |