# Component Library

> The set of ready-made parts, like buttons. It lives in the design tool and in code.

**Field:** Design  
**Category:** Design Standards  
**Also known as:** UI Kit, UI Library, Component Kit

## Think of it like

It is like a toolbox where each tool has its own slot. You grab the one you need.

## Definition

A component library is the set of ready-made parts in a design system, like buttons, fields and cards. It exists twice: once in the design tool and once in code. The two should match by name and by how they act. Then the button in the design is the same button in the app. A library alone is not a full design system, which also needs rules and guidance.

## Example

Jack drags a card from the library into his screen. The developer uses the card with the same name in code.

## Why it matters

Ready parts mean screens are built from tested pieces, not drawn from scratch each time.

## Common mistake

Letting the design and code versions drift apart. Then the screens and the app no longer match.

## Three principles

- **Ready-made parts.** Tested and reused.
- **Twice over.** Design file and code.
- **Names match.** Same part, same name.

## Related terms

- [Design System](https://learn.benibix.com/term/design/design-system)
- [Design Component](https://learn.benibix.com/term/design/design-component)
- [Pattern Library](https://learn.benibix.com/term/design/pattern-library)
- [shadcn/ui](https://learn.benibix.com/term/design/shadcn-ui)

## Told apart from

- [Design System vs Component Library](https://learn.benibix.com/compare/design-system-vs-component-library): A component library is the set of ready parts, like buttons and cards. A design system holds that library and more. It adds the tokens, the rules and the advice on when to use each part.
- [Component Library vs Pattern Library](https://learn.benibix.com/compare/component-library-vs-pattern-library): A component library holds single parts, like a button or a field. A pattern library shows how parts work together. Each pattern solves one problem, like a sign-up flow.
- [shadcn/ui vs Component Library](https://learn.benibix.com/compare/shadcn-ui-vs-component-library): People think shadcn/ui is a component library, and its own docs say it is not. A component library is a package you install and upgrade, and its maker keeps the code. shadcn/ui copies the code for each part into your project. After that, the code is yours. You can change any line, but fixes made to the first copy will not reach yours.

---

Source: https://learn.benibix.com/term/design/component-library
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
