Stack
A vertical flex column withmin-width: 0, so long or non-wrapping content shrinks instead of overflowing.
Row
A horizontal flex row withmin-width: 0.
Spacer takes up the remaining space in a Row or Stack. Give it size for a fixed gap instead.
Grid
A fixed number of equal columns that can shrink below their content:
repeat(cols, minmax(0, 1fr)).A responsive card grid: columns at least
min px wide when there is room, collapsing to one column on narrow screens. Ignored when cols is set.Why this matters: a plain
display: grid without explicit columns can grow to a child’s max-content width, and 1fr means minmax(auto, 1fr), which will not shrink below its content. Grid pins its tracks to minmax(0, …) in both modes. UIProvider also caps img, svg, video and iframe at max-width: 100%. Add overflow-x: hidden to your app root as well.Responsive
Breakpoints:sm 640, md 768, lg 1024, xl 1280.
{ width, sm, md, lg, xl, active, min(bp), max(bp) }. Each boolean is true when the viewport is at least that wide; active is the largest match, or 'base'.Show mounts its children only above (at least) or below (narrower than) a breakpoint; combine both for a range. Hide is the inverse. By default both decide on the client, so a hidden subtree is not mounted at all, but a server render shows the narrow layout first. breakpoints exports the pixel values.
css mounts both branches and hides one with a media query, so the first frame is already right and resizing re-mounts nothing. Use css for layout chrome such as a sidebar or a tab bar, and js for heavy subtrees.