A component library is an organized set of related, reusable components, often containing code examples, design guidelines, and use cases ([[Organizing a component library]]). Component libraries are one of the key parts of a [[Design system]].
One of the first steps in creating a component library is creating a [[Pattern inventory]], where you essentially audit and organize all the existing UI components of your system.