component-driven design
Designing layouts so each component adapts to the space it is given, not to the screen size, so it works wherever it is placed.
In more detail
It suits design systems, where the same component is reused across many different page layouts. Container queries make this possible in CSS: the card decides its own layout from its container's width.
Related terms
- container query — A CSS rule, written with @container, that styles a component based on the size of its container instead of the whole viewport.
- component — A reusable, self-contained piece of interface, such as a card or a modal, with its own markup, styles and behaviour.
- responsive design — Building layouts that adapt to the space available, from small phones to wide desktop screens.
Taught in
- Container Queries: Component-Driven Responsive Design — Frontend Architecture & Web Platform