I am trying to build a mat-slide-toggle button with 3 states which look like something like this in my angular application.
Is there anything like this in the mat-slide-toggle to achieve this?
I am trying to build a mat-slide-toggle button with 3 states which look like something like this in my angular application.
Is there anything like this in the mat-slide-toggle to achieve this?
Copyright © 2021 Jogjafile Inc.
so based on the state we need to override material styles. look below to see what you need to override.
click here to see stackblitz example->
style.scss
file have the overrided stylesit's your responsibility to change the state in the typescript file based on your logic.