Creative agency glossaryWeb, UX/UI, and Design

UI Component Libraries

A UI component library is a collection of ready-made, reusable interface elements, such as buttons, forms, menus and dialogs, that designers and developers use to build products quickly and consistently.

What is a UI component library?

Every interface is built from the same parts: buttons, inputs, checkboxes, dropdowns, tabs, cards, modals, alerts, tables. A component library is a set of those parts, designed and coded once and reused everywhere. In code, each component bundles its structure, styling and behavior, so a developer places a button rather than building one, and it arrives with its hover, focus, disabled and loading states already working. In a design tool, a matching library lets designers assemble screens from the same parts.

There are two sources. Public libraries such as Material UI, Bootstrap, Chakra and shadcn/ui give teams a complete set to start from, while unstyled libraries such as Radix supply the behavior and accessibility and leave the look entirely to the brand. Many companies also build their own, usually as the coded heart of a wider design system that covers principles, tokens and guidance as well.

Why it matters

Why a UI component library matters

It saves the same decisions from being made a hundred times. Without one, every new page reinvents the button with slightly different padding, the dialog that handles the keyboard differently and the form field whose error message appears somewhere new. With one, the product looks and behaves consistently, new features are built faster, and fixes happen once: correct the date picker in the library and it is correct everywhere. The best libraries also carry accessibility, since a component built properly for screen readers and keyboards improves every screen that uses it.

In practice

How a UI component library works in practice

  1. 01

    The first decision is whether to build, adopt or adapt. A product team on a deadline often starts with an established library and themes it with the brand's colors, type, spacing and corner radius through design tokens. A brand with a distinctive interface may build its own on top of unstyled primitives, getting tested behavior with complete freedom of look. Either way, the components are documented, often in a tool such as Storybook, with every variant and state on show.

  2. 02

    Then the library is run like a product. Each component has an owner, a version number and rules for change, so an update to the button does not break forty pages without warning. Designers and developers agree that new patterns are added to the library rather than built once in a corner, and the design file and the code are kept in step, so that what is designed is what can actually be built.

Watch out

What people get wrong about UI component libraries

Adopting a popular library and never theming it, so the product looks like every other product built with it. Second, treating a component library as a design system. The components are one part; the principles, the content guidelines and the reasoning behind decisions are what keep a product coherent as it grows. Third, building a library before there is a product. The right components emerge from real screens, and a library designed in the abstract fills up with parts nobody uses. And letting it fork, so each team keeps a slightly different copy and the consistency it promised quietly disappears.

Questions

People also ask

What is the difference between a UI component library and a design system?

A component library is the set of reusable interface parts, in code and often in a design tool. A design system includes that library plus the principles, tokens, patterns, content rules and documentation that explain how to use it. The library is the toolkit; the system is the toolkit and the instructions.

Which UI component library should I use?

It depends on the framework and on how distinctive the interface needs to be. Full libraries such as Material UI are fastest to start with, while unstyled libraries such as Radix give more control over the look. Check accessibility, maintenance activity and how easily it can be themed before choosing.

Do websites need a component library, or only apps?

Any site with more than a handful of templates benefits from one, even if it is simply a well-organized set of reusable blocks in the CMS. The benefits, consistency and speed, grow with the size of the site and the number of people editing it.

Next to it in the glossary

  1. SubdomainA subdomain is a prefix added in front of a domain name, such as shop or blog in shop.example.com, that creates a separate section or site under the same domain.
  2. Top-Level DomainA top-level domain is the last part of a domain name, after the final dot, such as .com, .org, .uk or .nyc.
  3. Transport Layer Security (TLS)Transport Layer Security (TLS) is the encryption protocol that secures traffic between browsers and websites, the technology that puts the S in HTTPS.
  4. UI/UX DesignUI/UX design is the combined discipline of designing how a digital product works for the people using it (UX) and how its screens look and respond (UI).
  5. User ExperienceUser experience (UX) is the whole of a person's experience of using a product, website or service, including how easy it is, how it makes them feel and whether it did what they needed.
  6. User InterfaceA user interface (UI) is the part of a digital product that people see and interact with, including its screens, layout, controls, type, color and feedback.

Every Web, UX/UI, and Design term →

In the work

Where it shows up

All our creations →

From the journal

Read around it

The journal →

Talking the talk is one thing

We make the work.

RIOT is a creative agency and production studio in New York. Strategy, brand, film, photography, design and the campaigns that carry them, made by one team. A few lines is enough to start: we read every brief the same day.

    Footage