UI components
The single building blocks of an interface, each seen as one control with one job, such as a button, a checkbox or a text box. Patterns combine them into bigger groupings or layouts, like a page header.
Also called UI elements, controls, widgets
Example
A banking app's sign-in screen is built from a handful of components: two text boxes, a 'Keep me signed in' checkbox and a button.
When to use it
Reuse ready-made components from a shared library to build faster and stay consistent. Prefer standard controls: custom-built ones need extra work so screen readers know what they are and what state they're in.
Types and parts 11 parts
The evidence 7 sourced claims
Every sentence on this card traces back to one of these claims, each linked to its source. How we research
A component library describes single interface elements (such as radio buttons), while a pattern library describes groupings or layouts of those elements (such as a page header or a page template).
WCAG defines a user interface component as a part of the content that people see as one control with one clear job. Form fields, links and controls built with scripts all count; it is also called a user interface element.
WAI-ARIA calls these interactive pieces widgets: separate interface objects a person can interact with. For example, a button is an input that triggers an action when it is clicked or pressed.
A design system's component library is a set of reusable interface parts; GOV.UK's lists 37, including button, radios, checkboxes, select, text input, tabs and error message.
WCAG 2.2 (Level A) requires every interface component to have a name and role that software such as screen readers can read, and changes to its state or value must be passed on to that software.
Standard HTML controls used as intended usually meet this requirement already, while custom-built controls need extra work to tell assistive technology what they are and what state they are in.
Reusing ready-made components from a shared library lets teams design and build faster and lowers the risk of accidental inconsistency across products.