For more info please check the components's official demos & documentation demos & documentation
mat-slide-toggle is an on/off control that can be toggled via clicking or dragging.
Slide me!

@Input() labelPosition: 'before' | 'after' Whether the label should appear after or before the slide-toggle. Defaults to 'after'

@Output() change: EventEmitter<MatSlideToggleChange> An event will be dispatched each time the slide-toggle changes its value.

Slide me!
Slide labels position
Primary Accent Warn
Checked
Disabled
Result
Slide me!