/
Checkboxes

Checkboxes

References

 

Example

Inline

Full Width

 

Usage

Structure

// Inline <div class="mat-form-option"> <label>Checkbox Group Label</label> <mat-checkbox>Option 1<mat-checkbox> <mat-checkbox>Option 2<mat-checkbox> <mat-checkbox>Option 3<mat-checkbox> </div> // Full Width <div class="mat-form-option mat-checkbox-layout-block"> <label>Checkbox Group Label</label> <mat-checkbox>Option 1<mat-checkbox> <mat-checkbox>Option 2<mat-checkbox> <mat-checkbox>Option 3<mat-checkbox> </div>

Container

  • Every checkbox should have a mat-form-option container, which formats its' content styles and spacing, and facilitates the label for a checkbox group.

  • Use the mat-checkbox-layout-block alongside the parent mat-form-option container to force each checkbox to be on it’s own line.

Label

  • Use <label> for input labels

Input

  • Use mat-checkbox for all instances of <input type="checkbox">

 

Related content

Toggle
More like this
Inputs
More like this
Dialogs
More like this
Input Types- Multiple Choice Inputs
Input Types- Multiple Choice Inputs
More like this
Card Helper
Card Helper
More like this
Global Forms
Global Forms
More like this