Skip to main content
NeuralUIv1.14.3New
GitHub
Component

Checkbox

Animated checkbox with full Angular Forms support.

TypeScript
import { NeuCheckboxComponent } from '@neural-ui/core/checkbox';
TypeScript
import { NeuCheckboxComponent } from '@neural-ui/core/checkbox';
import { FormControl, ReactiveFormsModule } from '@angular/forms';

@Component({
  imports: [NeuCheckboxComponent, ReactiveFormsModule],
  template: `
    <neu-checkbox label="I agree to the terms and conditions" [formControl]="termsCtrl" />
    <neu-checkbox label="Disabled option (unchecked)" [disabled]="true" />

    <!-- Reactive Forms / Reactive Forms -->
    <neu-checkbox label="Subscribe to newsletter" [formControl]="newsletterCtrl" />
  `
})
export class MyComponent {
  readonly termsCtrl = new FormControl(false, { nonNullable: true });
  readonly newsletterCtrl = new FormControl(false, { nonNullable: true });
}