Checkbox
A form control that allows the user to toggle between checked and not checked.
import { Checkbox } from "@ngrok/mantle/checkbox";
import { Label } from "@ngrok/mantle/label";
API Reference
The Checkbox
accepts the following props in addition to the standard HTML checkbox input attributes.
Prop | Type | Default | Description |
---|---|---|---|
checked |
| — | Whether the checkbox is checked or not. Setting this to |
defaultChecked |
| — | The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state. |
validation |
| — | Use the The Setting |