The simplest use case of the toggle component is a list of static links. When used as a list of static links, no additional information is conveyed other than the links and associated text content.

Option 1Option 2Option 3Option 4

Click handlers can be associated with each toggle in the toggle list. When click handlers are associated with toggles, it is assumed that the component is used to dynamically toggle between states. As such, the toggle component identifies itself semantically as a group of radio buttons.

Option 1Option 2Option 3Option 4

A change handler can be associated with the list of toggles. When a change handler is associated with the list of toggles, the toggle component will take care of automatically toggling between the different states and invoking the change handler with the value of the currently selected toggle. As such, the toggle component identifies itself semantically as a group of radio buttons.

Option 1Option 2Option 3Option 4Option 1Option 2Option 3Option 4Option 1Option 2Option 3Option 4

API