Figma Component Library
A component library goes wrong when every designer builds their own button. Imagine a bookings app where the Book button has three corner radii across four files, and nobody knows which one engineering built.
Learn on the move: press play and turn your commute, walk or drive into time that grows your design career.

So a Figma component library keeps one main component for each part of the interface, and every screen uses instances of it. When the system team changes a main component and publishes, every file that uses the library receives the change as an update.
What a Library Holds
A Figma library is a published file that other files add and then draw from. Per Figma's help center, it can hold three kinds of asset:
- Components: the buttons, inputs, slot rows and cards people place on screens, each with its variants and properties.
- Styles: saved text, color, effect and grid settings that components and screens apply.
- Variables: token values, such as color/action/primary, that component fills and spacing point to. Tokens & Variables covers how they are built.
That's why a library has two kinds of user. The system team edits and publishes the file, and product designers add it, place its components and accept its updates. A library that nobody can find or update ends up copied by hand, so both sides need their own skills.
Anatomy of a Component
A button copied from screen to screen drifts a little with every copy. Imagine the bookings app's Book button pasted into the slot list, the booking form and the admin panel. A month later the three copies have different padding, and a radius change means editing each one by hand.
So a library builds the button once, as a component with named parts, a set of states and, where content varies, a slot. Each placement on a screen is an instance that follows the main component.
Here is the Book button as pasted copies and as instances of one component:

Main Components and Instances
A main component is the source, and an instance is a linked copy placed on a screen. Figma passes every edit on the main component to its instances, so one radius change reaches every Book button in every file that uses the library. Figma Essentials covers the clicks that make one.
That's because the link allows only some changes on an instance. Per Figma's help center, an instance can take new text, fills, strokes, effects and swapped nested instances, but its layers can't be moved or reordered. A designer who needs a new layout has to detach the instance, which cuts the link. UI Kits vs Design Systems covers when detaching is the right call.
Here is what a Book button instance can and can't change:

The Parts of a Component
Every part of a component is a layer with a name and a job. IBM Carbon builds its button from a container, a text label and an optional 16 px icon. Its style spec sets 16 px of side padding and a 32 px gap between label and icon.
So the bookings app's Book button breaks down into four named parts:
- Container: the auto layout frame with the fill, radius and padding, so it grows with its label.
- Label: the text layer, exposed as a text property so nobody has to dig for it.
- Icon: an optional nested icon instance, such as a calendar before "Book 10:30".
- Focus ring: a stroke layer that shows only in the focused state.
That's why layer names matter as much as the drawing. Figma keeps an instance's overrides on a variant swap only where layer names match. A label called "Label" in one variant and "Text 2" in another loses its text on every swap.
Here are the parts of the Book button:

States
A state is how a component looks at one moment of use. Most interactive components need default, hover, pressed, focused and disabled, and a button that sends a request also needs loading. Atlassian's button has isLoading, isDisabled and isSelected, and Shopify Polaris web components give every button disabled and loading.
Because each state is a variant of one component, a designer picks it from a menu instead of drawing it. A missing state turns up in handoff as a question, and the loading button gets drawn by whoever needs it first. GOV.UK goes further on one state and advises avoiding disabled buttons, since their poor contrast can confuse some users.
Here are the states of the Book button side by side:

Slots
A slot is an area inside a component where people add their own content without detaching it. Figma made the slot a component property, next to variants, booleans, text and instance swaps, on all plans. The booking card is the classic case, because one provider shows a price, another a cancellation note and a third a map.
That matters because, before slots, designers often detached the card to add one line, and every later fix missed that copy. A slot keeps the card linked, so a new radius or header still arrives. The main component can also list preferred instances and set a minimum and maximum number of layers. Figma treats those limits as guidance and marks a breach in orange.
Here is the booking card with a slot for its body:

Pro tip: Name every layer in the main component before you add a single variant. Renaming later breaks the match Figma uses to keep overrides, so instances in product files lose their edited labels.



