monolithic component
One large component that handles every variation through a long list of configuration props.
In more detail
Monolithic components grow a new boolean prop for each feature request until the combinations become unmanageable. The course refactors them into small composable pieces.
Related terms
- boolean prop — A component option that is just true or false, such as isPrimary or hasIcon.
- composition — Building a component out of smaller components that the consumer assembles, instead of configuring one big component with flags.
- anti-pattern — A common solution to a problem that looks reasonable but causes more trouble than it solves.
Taught in
- Component API Ergonomics: Composition vs Boolean Config Props — Design Systems & Component Engineering