The Switch Icon component is used to create a transition between two icons. You can use any icon, both line and filled version.
To replace the icons, all should add active
class to the switch-icon
component.
You can also add a fancy animation to add variety to your button. See demo below: