visit
So, tell me, which UI element would you pick? Let’s explore the UX value of ten common UI elements. Make sure to read until the end as I've included a bonus section on choosing a button design. If you are unsure about the difference between UI and UX design, definitely check out this guide.
Checkboxes provide users with the following options:
This is exactly the key difference with toggles. Toggles represent a state that always applies. Whether you change or don’t change the value of a toggle, there’s always a connection with an underlying state.
For example, a toggle can represent whether you want to receive notifications or not. When the toggle is turned on, you’ll receive notifications. When you turn it off, you won’t receive notifications. As you can see, each position of the toggle is connected to a state.(Image by via )
Lastly, radio buttons allow the user to choose a single option. In other words, there’s always one selected option. When the user selects another option, the previous option will deselect. This means that all options are mutually exclusive.
When you deal with opposing states such as turning notifications on or off, use a toggle switch.
However, when you deal with options that provide different alternatives, opt for radio buttons. For example, you want the user to choose between “landscape” mode or “portrait” mode as the default mode for a camera application. This isn’t an opposing state, and therefore, use radio buttons to present the choice to the user.
(Image by via )
(Source: screenshot of a dropdown component)
Another tool that can be found in the toolbox of every good web developer is the dropdown menu. Dropdown menus can be very effective when the user is presented with a rich selection of options to choose from. When there are only a few options other components can be preferable, such as the above-mentioned slider for example.There are many advantages to using dropdown menus. First of all, they conserve a lot of space when you are dealing with a lot of options. Another advantage is that you know exactly which input to expect from a dropdown menu since it is you who can decide which options the user can choose from.However, a dropdown menu is not always the best component when you have a lot of options the user can choose from. One of the most important web design principles for user experience is that you always choose the component that allows for the fastest input.
Pick a component that allows for the fastest input.When you have too many options to choose from and the user has to scroll down the list of options, the user experience will suffer. If there is no possibility to use a smart default based on analytics or overall usage patterns, it may be useful in these cases to add a search function to increase the usability of your dropdown menu. The next section explains the use of selection lists and how they can replace a dropdown menu. A good rule of thumb is to use a dropdown menu when you want to display less than ten options. When you want to display more than ten options, use a searchable selection. Let’s learn why in the next section!
Recommended read: 23 Best React UI Component Libraries and Frameworks.
(Source: screenshot of price slider)
To sum up, sliders can be a useful tool to quickly present the user with new information or when the user needs to choose qualitative values. However, sliders should definitely be used in moderation to not distract the user from their goal and not to slow down your website. They should be avoided at all costs when the user has to pick specific numeric values.Never use a tooltip for hiding critical information.These requirements are vital information for the user to successfully complete the account creation process. Often, developers abuse tooltips to hide this type of vital information which is necessary for a successful form submission. Avoid using tooltips for this purpose!
(Source: screenshot of )
(Source: screenshot)
Input steppers should reduce the number of actions for users.Often, you’ll find a ‘plus’ and a ‘minus’ button next to a numeric input field. When you hit the ‘plus’ button, the count will increase by one. Therefore, you reduce the interaction cost drastically by using an input stepper.
(Source: screenshot)
(source: free-to-use image by )
A final web design principle is to interact with the user and keep him informed that something is happening. A progress indicator such as a loading spinner is an ideal way to achieve this. It lets the user know that the application received the request and is actively processing it. Informing the user that something is ongoing is also crucial to prevent him from refreshing the page and resetting all progress.A page refresh during form submission is one of the most frustrating edge cases web developers have to face. On the other hand, it can also be a very frustrating experience for users to have to complete the form for a second time in the hopes the page will respond this time.Displaying a progress indicator provides an effective method to both give feedback to the user and it eases the user who has to wait because he knows something is happening. The perception of the user may even be that the wait isn’t as long because he devotes some cognitive resources to the feedback itself, which in turn provides for a smoother user experience altogether.Let’s discuss the size, shape, color, and placement of buttons.
First of all, design your buttons to a minimum size of 10mm by 10mm. A button often represents a call to action or helps users complete important actions such as a form submission. Therefore, designing buttons too small will make it harder for users to notice them.
Next, as said before, a button needs to stand out. Therefore, pick a color that has a distinct contrast from its surroundings. For example, Gmail’s “send” email button nicely stands out from its grayscale UI.
(Source: Screenshot of email submission interface)
When it comes to the shape of buttons, there’s no such thing as a rule of thumb. You are free to choose between square or rounded buttons. What matters most is consistency. Keep your button design consistent across your application.What about the placement of buttons? Give buttons plenty of whitespace to help users to quickly discover them. In the end, a button represents an important action for your application or serves as a CTA. Therefore, you want your buttons to be seen! In short, stick to traditional button designs with a visual clue to make them stand out. This will help users to easily understand your layout and the purpose of the button.What did we learn? Many UI elements exist that serve the same purpose. Having a deep understanding of the UX value of each UI element allows you to make better development decisions.
For example, you’ll be able as a developer to choose between a radio button, checkbox, or toggle for presenting options to a user. Having a good understanding of the UX value of each element gives you an edge over other web developers. Nonetheless, a web developer should be capable of making the right UI decisions based on the UX value of elements.Want to learn more about UX Design? This Hackernoon guide gives you actionalbe tips to start learning UI/UX design.