Module 11 of 12

Building a Component Library

Lessons

About This Module

A component library is where a design system becomes real code. It turns the decisions you made about color, type, spacing and tokens into reusable, tested components that product teams can install and use instead of rebuilding the same button again and again.

This module starts with atomic design thinking, a way to break an interface into small parts that combine into larger ones. You'll then see how to build accessible, reusable components, set up a library with Vite and Storybook so every component is documented and testable in isolation, and finally bundle and publish the library so other projects can use it.

The tooling lessons use React, but the ideas apply to any framework. Watch the lessons in order, then continue on to Scaling & Adoption.

Lessons

4 videos
01

Is Atomic Design Dead?

Brad Frost, creator of Atomic Design, reflects on the past, present and future of design systems and how to structure components from small parts into larger ones.

02

Building Accessible Components in React

Jemima Abu shows the best way to build components that are both reusable and accessible, and the shortcuts in JSX that quietly break accessibility.

03

Components Library with Vite & Storybook

A walkthrough of setting up a UI component library using Vite's library mode, with Storybook for documentation, reference and debugging.

04

Create and Publish Your Own React Component Library

Build a simple React component, test it in Storybook, bundle it with Rollup and publish it to npm so it can be installed in other projects.