<?xml version="1.0" encoding="utf-8"?>

Components are the building blocks of an interface. They include buttons, checkboxes, labels, inputs, cards, and many others. Each of them has unique anatomy and implements a specific role to help users achieve their goals.

What is the difference between radio buttons and checkboxes? Cards and containers? Links and hyperlinks? Understanding how each component works and where it should be applied is powerful knowledge. Not only will you feel more relaxed communicating with designers, but you'll also be more confident in your professional skills.

Exercise #1

Buttons

Buttons

In digital products, buttons communicate actions that users can take. They usually consist of a rectangular, square, or circular shape with a label or an icon. Buttons allow users to perform actions with a single click or tap.

A button can also be represented solely by an icon or label. Text buttons and links may look similar but they do different things. Clicking buttons changes the state of a system (either front or back end), while clicking links redirects you somewhere else and doesn't change the system's state. Plus, links often appear in the text and thus, can be longer. Buttons can also be used to toggle states, open dropdowns, or trigger overlays like modals and tooltips.

Exercise #3

Hamburger menus

Hamburger menus

The hamburger menu is a button commonly found in websites and apps that, when clicked or tapped, reveals a side menu or navigation drawer. Traditionally, it's represented by three parallel horizontal lines stacked on top of each other. These lines may sometimes be accompanied by the word "Menu" or even an icon suggesting interaction, like an arrow. The layout is intended to resemble a simplified drawing of a hamburger to those with culinary inclinations — hence the name.

The icon serves as a compact way to hide navigation links while offering an intuitive way for users to access various sections of a site or app. This design choice is particularly useful for mobile interfaces where screen real estate is limited.

Exercise #5

Cards

Cards

A card is a UI component that contains content and actions about a single subject. Cards in UI resemble trading cards in real life — they're rectangular and often include an image and some text. They may also contain interactive elements such as Learn More or Read More buttons.

Pinterest is an excellent example of a website leveraging cards to the fullest extent.

Exercise #6

Checkboxes

Checkboxes

Checkboxes are UI selection controls commonly found in forms. Single checkboxes are often encountered when asking for users' consent to the Terms and Conditions and Privacy Policy. When checked, they display a small box with a check mark inside. When unchecked, they appear as an empty box.

In contrast to radio buttons, checkboxes allow users to select several options at the same time and enable or disable each one of them.

Exercise #7

Containers

Containers

A container divides content into meaningful sections. Just like storage containers help organize a pantry, UI containers help structure and group content.

Containers can hold text, images, or action items. Rigid containers restrict the size or cropping of the elements inside them. Flexible containers grow to fit the size of the content they hold.[1] That’s how responsive design works: all elements are placed inside containers that adapt to screen size and orientation, ensuring consistency across layouts.

Exercise #9

Toggles

Toggles

Toggle buttons group 2 functions (sometimes 3) into a single container. In Apple's Human Interface Guidelines, you can encounter a similar component called segmented buttons.[2]

All buttons are usually equal in width. They behave like radio buttons — only one button can be selected at a time in each group. The chosen option is usually highlighted with colors or overlays. In contrast, segmented buttons allow multiple choices.

Exercise #10

Inputs

Inputs

Input fields, commonly referred to as "inputs," are essential UI elements that enable users to input various types of data—be it a name, password, email, or even date and time. You'll typically find these fields within forms and dialogs.

Their purpose is straightforward: to collect information in a way that's efficient and user-friendly. Inputs come in many flavors, catering to different data types and user needs. They can include text boxes for general information, password fields that obscure entered text, or specialized fields for dates and numbers.

The key to effective use of inputs is clarity and context; labels, placeholder text, and design cues like icons can guide users, making their interaction with your interface smooth and intuitive.

Exercise #11

Labels

Labels

A label is a static piece of text that people can read and copy but not edit. Labels display text throughout the interface — in buttons, menu items, and views. They aim to help people understand the current context and what they can do next. For example, within a button, a label generally conveys what the button does, such as Edit, Cancel, or Send.[3]

Exercise #12

Radio buttons

Radio buttons

Radio buttons are controls that appear as outlined circles. A filled dot inside the circle shows the selected option.

Unlike checkboxes, radio buttons let users choose only one option. Once selected, an option can't be unselected; it can only be replaced. To avoid locking users into a choice, include a "None of the above" or similar option.

Complete this lesson and move one step closer to your course certificate