Toggle Button implementation

How do we add a toggle button? Is there a predefined button for the button shown below?
image