Thirty essential UI elements fall into five groups: input controls such as buttons, text fields, checkboxes and sliders; navigation such as menus, tabs, breadcrumbs and pagination; information display such as cards, tables, tooltips and badges; feedback such as alerts, toasts, progress bars and spinners; and containers such as modals, accordions and panels. Using each for its intended purpose keeps interfaces familiar and easy to use.
- ✓UI elements fall into five main groups
- ✓Use each element for its intended purpose
- ✓Familiar elements reduce learning effort
- ✓Design every state, not just the default
- ✓Make every element accessible by keyboard and screen reader
Why UI elements matter
User interfaces are built from a common vocabulary of elements: buttons, text fields, menus, cards, alerts and more. People have learned how these elements behave from years of using websites and apps, so using them correctly makes products easier to understand. Using the wrong element, such as a checkbox where a toggle is expected or a modal for content that should be a page, creates confusion. This guide lists thirty essential elements grouped by purpose. Our UI patterns guide covers how these elements combine into larger patterns.
Input controls
Choosing the right input saves users effort. Radio buttons work best for two to five visible options; dropdowns suit longer lists. Toggles should take effect immediately, while checkboxes usually require a separate save or submit action.
Navigation elements
Information display
Cards suit varied, browsable content, while tables suit comparing many similar items. Icons work best alongside text labels, since few icons are universally understood. Our post on UX for data-heavy apps covers table design in more depth.
Feedback elements
Containers
Modals should be used sparingly for short, important interactions, such as confirming a deletion. Accordions help organise long content, such as FAQs, but hide information, so avoid them for content most users need to see.
UI elements on mobile
Many elements behave differently on touchscreens. Hover-based tooltips do not work without a mouse, so important hints should be visible or available on tap. Dropdowns often open native pickers, which are easier to use with a thumb. Bottom sheets frequently replace modals, and tab bars replace top navigation. Touch targets should be at least 44 to 48 pixels for comfortable use. Our guide to mobile-first design explains how to prioritise elements on small screens.
Common mistakes
- Using icons without labels for important actions
- Relying on placeholder text instead of labels
- Overusing modals and alerts
- Using custom controls that break keyboard access
- Mixing different elements for the same purpose
Designing every state
Missing states are a common source of confusing interfaces. Defining them in a design system ensures every team uses them consistently.
Choosing the right element
-
1
Identify the taskWhat is the user trying to do?
-
2
Consider the optionsHow many choices or how much content is involved?
-
3
Follow conventionsUse the element people expect for that task.
-
4
Check accessibilityEnsure it works with keyboard and screen readers.
-
5
TestConfirm users understand it in context.
Accessibility for UI elements
- Use native HTML elements where possible, such as real buttons and inputs
- Give every control a visible label or accessible name
- Ensure keyboard access and visible focus states
- Meet contrast requirements for text and controls
- Make touch targets large enough on mobile
- Announce dynamic changes such as toasts to screen readers
