Nick Babich
·
Follow
Published in
UX Planet
·
5 min read
·
Aug 5, 2020
--
Toggle switch (known as “toggles”) is a UI control that has two mutually-exclusive states, such as ON and OFF. The design and functionality of this control is based on a physical switch that allows users to turn things ON or OFF (i.e. light switch). Even though that toggle switches have been in user interfaces for a while, many designers still misuse them.
In this article, I will review 5 best practices for using toggle switches in UI design and illustrate them with some excellent visual examples.
Toggles are best suited for changing the system settings or preferences (i.e. states of system functionalities). For example, a toggle is right control when you want to allow users to turn the Airplane Mode ON or OFF.
Enabling Airplane Mode in Apple iOS. Image by AppleToggles are the preferred way to adjust settings on mobile because they take less screen estate (in comparison with two radio buttons).
Toggle comes with a pre-selected default state (either ON or OFF). If you need to allow users to make a choice (i.e the user needs to answer ‘yes’ or ‘no’), it’s better to use a checkbox because the checkbox doesn’t have a default value.
Do: ‘Stay signed in for a week’ is a checkbox because it’s a yes-or-no question. Image by StripeGood labels make the toggle switch easy to understand. Label makes it clear what option the toggle controls, as well as what state the toggle right now.
Here are a few things to remember when writing labels:
Don’t: Do you want to see average price?
Do: Show average price
When users interact with toggles, they shouldn’t need to click Save or Confirm button to apply a new state. For the very same reason, it’s better to avoid using toggles in long forms where other types of form fields are present, and the user needs to tap the Submit button for changes to take place. In this case, it’s safer to replace a toggle switch with a single checkbox.
If immediate results are not achievable due to system delays (sometimes it takes a few seconds for the system to change of state), it’s possible to add a processing status loop animation. But remember that the operation should take no more than a few seconds.
Do: A processing status animation on the switch. Image by Material DesignSimilar to any other UI elements, the visual appearance of the UI element help users predict what will happen when they interact with this element.
Interactions between computers and humans should be as intuitive as conversations between two humans. Interaction Design Foundation will help you to learn how to design for efficiency and persuasion.
Want more information on high quality toggle switch? Click the link below to contact us.