Component Library
UI DesignWhat is a Component Library
A component library is a shared set of reusable UI elements, such as buttons, inputs and cards. It can live in a design tool, in code, or in both, and gives designers and developers one place to find and use the same components.
How a Component Library works
- Design side: A Figma library shares components, styles and variables across files
- Code side: Developers build components and document them in tools like Storybook
- Instances: Each use of a component is an instance that receives updates from the main component
Component Library vs. Design System
A component library is one part of a design system. The full system also includes principles, design tokens, style guides, patterns and the team that maintains them.
Benefits of a Component Library
Teams build faster because they reuse tested parts instead of drawing them again. Products stay consistent, and a fix to one component reaches every screen.
Frequently asked questions
What is the difference between a component library and a design system?
A component library is the set of reusable UI elements. A design system also includes principles, tokens, style guides, patterns and the people and process that maintain it. The library is one part of the system.
What is the difference between a component and an instance in Figma?
The main component defines the design and its properties. Instances are copies used in designs. When you change the main component, the instances receive the update.
Which tools hold a component library?
Designers usually keep the library in a Figma library that is shared across files. Developers often build and document the coded components in Storybook, which shows each component in isolation from the app.
Related terms
View all UI Design terms →Design System
A Design System is a complete collection of documented standards, principles, guidelines, and reusable components that govern a product's…
Atomic Design
Atomic Design is a methodology for building design systems created by Brad Frost. It breaks an interface into small parts and shows how…
Design Tokens
Design tokens are named values that store design decisions , such as colors, spacing and type sizes. Design tools and code read the same…
UI Elements
UI Elements are the individual components that make up a user interface. They are the building blocks used to create interactive…
Design Patterns
Design Patterns are reusable solutions to common design problems in user interfaces. They are tried-and-tested approaches that help create…
Design Handoff
Design handoff is the step where designers pass finished designs to developers to build. It includes the screens, specs, assets, states…
