State Toggle

Purpose

The state toggle allows the user to easily switch between different states of an element.

Example

State Toggle Large

Description

The state toggle allows for switching between states of an element, for example between Edit and Preview states of an email edit page. JavaScript can be attached (using `.js-*` classes) as required. The below uses simple JavaScript to illustrate the switch of active state.