# checkbox

```ts
import { CheckboxModule } from '@anguless/angulux/checkbox';
```

## Checkbox

`agl-checkbox, agl-checkBox, agl-check-box` — component

Inherits every input, output and slot of `BaseEditableHolder` — see [baseeditableholder.md](baseeditableholder.md).

Checkbox is an extension to standard checkbox element with theming.

| Input | Type | Default | Description |
| --- | --- | --- | --- |
| `hostName` | `any` | _not documented_ |  |
| `value` | `any` | _not documented_ | Value of the checkbox. |
| `binary` | `boolean \| undefined` | _not documented_ | Allows to select a boolean value instead of multiple values. |
| `ariaLabelledBy` | `string \| undefined` | _not documented_ | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
| `ariaLabel` | `string \| undefined` | _not documented_ | Used to define a string that labels the input element. |
| `tabindex` | `number \| undefined` | _not documented_ | Index of the element in tabbing order. |
| `inputId` | `string \| undefined` | _not documented_ | Identifier of the focus input to match a label defined for the component. |
| `inputStyle` | `{ [klass: string]: any } \| null \| undefined` | _not documented_ | Inline style of the input element. |
| `styleClass` | `string \| undefined` | _not documented_ | Style class of the component. **Deprecated:** since v20.0.0, use `class` instead. |
| `inputClass` | `string \| undefined` | _not documented_ | Style class of the input element. |
| `indeterminate` | `boolean` | _not documented_ | When present, it specifies input state as indeterminate. |
| `formControl` | `FormControl \| undefined` | _not documented_ | Form control value. |
| `checkboxIcon` | `string \| undefined` | _not documented_ | Icon class of the checkbox icon. |
| `readonly` | `boolean \| undefined` | _not documented_ | When present, it specifies that the component cannot be edited. |
| `autofocus` | `boolean \| undefined` | _not documented_ | When present, it specifies that the component should automatically get focus on load. |
| `trueValue` | `any` | _not documented_ | Value in checked state. |
| `falseValue` | `any` | _not documented_ | Value in unchecked state. |
| `variant` | `'filled' \| 'outlined' \| undefined` | `undefined` | Specifies the input variant of the component. |
| `size` | `'large' \| 'small' \| undefined` | `undefined` | Specifies the size of the component. |

| Output | Type | Description |
| --- | --- | --- |
| `onChange` | `EventEmitter<CheckboxChangeEvent>` | Callback to invoke on value change. |
| `onFocus` | `EventEmitter<Event>` | Callback to invoke when the receives focus. |
| `onBlur` | `EventEmitter<Event>` | Callback to invoke when the loses focus. |

| Slot | Read as | Description |
| --- | --- | --- |
| `<ng-template #icon>` | `checkboxIconTemplate` | Custom checkbox icon template. |
