# CheckboxProps (@salmonui/inputs/checkbox)

> The CheckboxProps interface of @salmonui/inputs/checkbox.

Canonical: https://salmonui.dev/docs/reference/inputs/checkbox/CheckboxProps

```ts
import type { CheckboxProps } from '@salmonui/inputs/checkbox';
```

Entry index: https://salmonui.dev/docs/reference/inputs/checkbox (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/inputs/checkbox.md).

## Reference

Kind: interface

```ts
interface CheckboxProps extends ToggleFieldProps {
    readonly indeterminate?: boolean | undefined;
}
```

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `checked` | `checked?: boolean;` | optional, inherited |  |
| `defaultChecked` | `defaultChecked?: boolean;` | optional, inherited |  |
| `indeterminate` | `readonly indeterminate?: boolean \| undefined;` | optional | Mixed state: `aria-checked="mixed"` and `data-indeterminate` on the server, the DOM property after mount. |
| `description` | `description?: ReactNode;` | optional, inherited |  |
| `errorMessage` | `errorMessage?: ((ctx: { readonly errors: readonly string[]; }) => ReactNode) \| ReactNode;` | optional, inherited | Error text (or a function of the errors) shown while the field is invalid. |
| `invalid` | `invalid?: boolean;` | optional, inherited | Forces the error state. |
| `validation` | `validation?: FieldValidation;` | optional, inherited | Rules in the Data Grid vocabulary. |
| `validateOn` | `validateOn?: ValidateOn;` | optional, inherited | When errors appear; default the `Form`'s, else `'blur'`. |
| `size` | `size?: FieldSize;` | optional, inherited | Metric set. Default `'md'`. |
| `onCheckedChange` | `onCheckedChange?: ((checked: boolean, details: CheckedChangeDetails) => void);` | optional, inherited |  |
| `value` | `value?: string;` | optional, inherited | Submitted value when checked (native, default `'on'`). |
| `children` | `children?: ReactNode;` | optional, inherited | Label text (rendered in a real `<label for>`). |
| `labelPlacement` | `labelPlacement?: LabelPlacement;` | optional, inherited | Label before (`'start'`) or after (`'end'`, default) the control. |
| `localeText` | `localeText?: FieldValidationText;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: { readonly input?: string; readonly label?: string; readonly description?: string; readonly error?: string; };` | optional, inherited | Part classes: `root` is `className`; `input`, `label`, `description`, `error`. |
| `ref` | `ref?: Ref<HTMLInputElement>;` | optional, inherited | The native `<input type="checkbox">`. |
