Checkbox
A checkbox input for boolean selections.
Preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | Checked state |
disabled | boolean | false | Disables checkbox |
label | string | — | Label text |
onChange | function | — | Change handler |
Usage
const { Checkbox } = window.ColorSnap;
ReactDOM.createRoot(document.getElementById('root')).render(
React.createElement(Checkbox, { label: 'Accept terms' })
);