# Checkbox95

A binary option control backed by SwiftUI Toggle behavior.

`Checkbox95` binds a Boolean value to a pixel checkmark and input-style indicator.

![Checked, unchecked, and disabled Checkbox95 controls](/images/checkbox95-states-macos.png)

The common checkbox states rendered by the snippet below.

## Use it

```swift
import Swift95
import SwiftUI


struct Checkbox95Example: View {
  @State private var showsHiddenFiles = true
  @State private var confirmsDeletion = false


  var body: some View {
    VStack(alignment: .leading, spacing: 6) {
      Checkbox95("Show hidden files", isOn: $showsHiddenFiles)
      Checkbox95("Confirm before deleting", isOn: $confirmsDeletion)
      Checkbox95("Unavailable option", isOn: .constant(true))
        .disabled(true)
    }
  }
}
```

## Essential behavior

| Concern       | Behavior                                                                          |
| ------------- | --------------------------------------------------------------------------------- |
| Binding       | Reads and writes a `Binding<Bool>`.                                               |
| Semantics     | Preserves native toggle behavior, enabled state, keyboard use, and accessibility. |
| Custom labels | Use `Checkbox95(isOn:label:)` for composed SwiftUI labels.                        |
| Native APIs   | Use `swiftUI(_:)` to modify the embedded `Toggle`.                                |

## Related

- [`RadioButton95`](/components/radio-button/)
- [`Text95`](/components/text/)
- [`Theme95`](/components/theme/)

[Open the complete Checkbox95 API reference →](/api/documentation/swift95/checkbox95)
