Checkbox is used for a list of selections that are meant to have one or more options checked.
PBCheckbox(checked: false, text: "Unchecked", action: {}) .padding(.bottom, Spacing.small) PBCheckbox(checked: true, text: "Checked", action: {})
PBCheckbox( checked: false, checkboxType: .error, text: "Error", action: {} )
PBCheckbox( checked: true, checkboxType: .indeterminate, text: "Indeterminate", action: {} )
Bool
false
true
CheckboxType
default
error
indeterminate
String
nil
(() -> Void)
{}