Component Library

A component library is the built, working set of interface elements a team assembles pages from, as opposed to the documentation and rules that govern them. The library is the parts; the design system is the parts plus the standards, the naming, and the decisions about when to use each one.

Last reviewed

Library or design system

The words get used interchangeably and the difference matters when something goes wrong. A library with no usage rules produces twelve slightly different buttons within a year, because nothing said which one to reach for.

A useful rule of thumb: if a new designer can find a component but cannot tell whether they are allowed to use it here, you have a library and not yet a system.

Library, pattern library, design system
Component libraryPattern libraryDesign system
HoldsBuilt elementsRecurring solutionsEverything, plus the rules
FormatFigma and codeDocumentationBoth
AnswersWhat existsHow this problem is solvedWhat to use, and when
Enough on its ownNoNoYes, with an owner

What makes one get used

  • Every component covers its real states: hover, focus, error, empty, loading
  • Naming that matches what the team says out loud
  • Responsive behaviour built in, not left to the person placing it
  • A visible place to see everything at once
  • An owner, so the library is maintained rather than merely launched

The marketing-site version

On a B2B site the library is mostly page sections rather than atoms: hero variants, proof strips, pricing tables, FAQ blocks, CTA bands. Get those right and a marketing team can build a new landing page in an afternoon without a designer.

Why it matters for B2B marketing teams

The B2B version of this is narrower than the product version. You need twenty to thirty page sections, not a full interface kit. Get those right and your marketing team stops filing design tickets for routine pages.

Frequently asked questions

What is the difference between a component library and a pattern library?+

A component library holds the built elements. A pattern library documents recurring solutions and when to apply them. In practice most teams ship one artefact containing both, and call it whichever term their industry favours.

How many components does a marketing site need?+

Fewer than teams expect. Twenty to thirty well-made section components cover almost every page a B2B site needs. Beyond that you are usually duplicating variants that should have been options on an existing component.

Related terms

←Back to Glossary