Skip to main content

Component Library

UI Design

What 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.