layoutif
Layoutif is a term used in discussions of user interface design to describe a declarative mechanism for expressing conditional layouts within a layout specification. It imagines a method for selecting among alternative spatial arrangements based on runtime conditions, without requiring imperative scripting.
In a layoutif model, decisions about how content is arranged are governed by conditions that can depend
Layoutif is often discussed in relation to existing responsive design concepts. It shares goals with CSS media
Implementation considerations include performance of evaluating conditions during layout passes, readability of the conditional rules, and
See also: responsive design, media queries, CSS Grid, constraint layouts, conditional rendering.