I need to customize the colour, height and width of the mat-slide-toggle
:
<mat-slide-toggle class="" [color]="color" [checked]="checked" [disabled]="disabled"></mat-slide-toggle>
You can override the inner classes of mat-slide-toggle (.mat-slide-toggle-thumb, .mat-slide-toggle-bar) to customize their color, height and width. Add these overrides to style.scss if you need it through your app, or to the css of your current component if the style needs to be scoped
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.