Usage
SwiftUI
M3ECheckbox(isChecked: $agree)
M3ECheckbox(state: .indeterminate) { selectAll() }API
| Property | SwiftUI | Description |
|---|---|---|
| checked | isChecked / state | State. |
| error | error: Bool | Error styling. |
Guidelines
- Pair every checkbox with a tappable label.
Selects one or more items from a list. The indeterminate state represents a parent with partially selected children.
M3ECheckbox(isChecked: $agree)
M3ECheckbox(state: .indeterminate) { selectAll() }| Property | SwiftUI | Description |
|---|---|---|
| checked | isChecked / state | State. |
| error | error: Bool | Error styling. |