Skip to main content
Visual Builder is live
Try it

What belongs in a component, and what doesn't

The line between a component and a layout is where most design systems blur. Here's how we draw it.

A component owns its internals. A layout arranges components. When a component starts deciding where its siblings go, it has taken on a job that isn’t its own.

The test

If a prop exists only to fix one page, it doesn’t belong on the component. Push it up to the layout. The component stays small, and the system stays composable.

Related articles