18. Component API Design
18. Component API Design
Design semantic, composable, and flexible component APIs.
A design system component is an API.
Treat it like one.
In this chapter
18.1 Prefer semantic props
Component API Design · Section 18.1
18.2 Avoid boolean explosion
Component API Design · Section 18.2
18.3 Composition over mega-components
Component API Design · Section 18.3
18.4 Controlled vs uncontrolled APIs
Component API Design · Section 18.4
18.5 Escape hatches
Component API Design · Section 18.5