Design System GuideDS Guide
Docs
Docs
18. Component API Design18.1 Prefer semantic props18.2 Avoid boolean explosion18.3 Composition over mega-components18.4 Controlled vs uncontrolled APIs18.5 Escape hatches
19. Patterns, Templates, and Product-Specific Components
18. Component API Design

18.5 Escape hatches

Component API Design · Section 18.5

Sometimes consumers need:

  • className
  • style
  • asChild
  • slot props
  • render props

Escape hatches are useful.

But if every consumer must override the component, the design system abstraction is probably wrong.

18.4 Controlled vs uncontrolled APIs

Component API Design · Section 18.4

19. Patterns, Templates, and Product-Specific Components

Connect primitives to patterns, templates, and product-specific experiences.