The icon button can be used to toggle between an on and off icon. To style an icon button as an icon button toggle, add both icons as child elements and place the class on the icon that represents the element. If the button should be initialized in the “on” state, then add the
mdc-icon-button--on
class to the parent button
. Then instantiate an on the root element.
Post a Comment