Checkbox

Checkbox is an extension to standard checkbox element with theming.

Binary checkbox is used as a controlled input with ngModel and binary properties.

Binary checkbox is used as a controlled input with ngModel and binary properties.

basic-demo

The indeterminate state indicates that a checkbox is neither "on" or "off".

indeterminate-demo

Multiple checkboxes can be grouped together.

multiple-demo

Checkboxes can be generated using a list of values.

dynamic-demo

Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.

filled-demo

Checkbox provides small and large sizes as alternatives to the base.

sizes-demo

When disabled is present, the element cannot be edited and focused.

disabled-demo

The invalid state is applied using the ⁠invalid property to indicate failed validation, which can be integrated with Angular Forms.

invalid-demo
template-driven-forms-demo

Checkbox can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.

reactive-forms-demo

Screen Reader

Checkbox component uses a hidden native checkbox element internally that is only visible to screen readers. Value to describe the component can either be provided via label tag combined with inputId prop or using ariaLabelledBy, ariaLabel props.

Keyboard Support

KeyFunction
tabMoves focus to the checkbox.
spaceToggles the checked state.
ON THIS PAGE
Theme Designer
Theme Designer is the ultimate tool to customize and design your own themes featuring a visual editor, Figma to theme code, cloud storage, and migration assistant.
Learn More