Renders a button with role="switch". Can only be used as a controlled component.

Live Demo

The icon prop replaces the icon rendered by the component.

Live Demo