# UIB CheckboxModule

## Prequisites

Add the `CheckboxModule` module to your module imports:

```TS
import { CheckboxModule } from '@uib/angular';

@NgModule({
  imports: [
    // ...
    CheckboxModule,
    // ...
  ],
})
// ...
```

## UibCheckbox

### Examples

```HTML
<uib-checkbox
  [checked]="checked"
  [disabled]="disabled"
  [id]="id"
  [indeterminate]="indeterminate"
  [name]="name"
  [required]="true"
  (change)="onChange($event)"
  (indeterminateChange)="onIndeterminateChange($event)"
>
  Check this
</uib-checkbox>
```

Boolean attribute values can be omitted to be true:

```HTML
<uib-checkbox disabled indeterminate required>
</uib-checkbox>
```

With template driven forms:

```HTML
<uib-checkbox [(ngModel)]="checked">
  Check this
</uib-checkbox>
```

With reactive forms:

```HTML
<uib-checkbox formControlName="model">
  Check this
</uib-checkbox>
```
