Migrate a project summary
Row, column, and stack are deprecated. Compare an existing composition with a responsive utility layout, then resize the preview. Keep the existing APIs when maintaining older screens; use the utility version for new work.
Layout Migration source
Why these components are deprecated
Use layout utilities for new screens: they provide responsive control without maintaining a separate layout-component API. The published Stack migration reference covers horizontal and vertical layouts, stretching, flexible children and leading/trailing items.
Migration mapping
| Legacy layout intention | Utility replacement |
|---|---|
| Horizontal stack | flex items-center |
| Vertical stack | flex flex-col |
| Full width | w-full |
| Gutter of 2 | gap-x-2 horizontally or gap-y-2 vertically |
| Children fill cross-axis | h-full on horizontal children; w-full on vertical children |
| Flexible children | Apply flex-1 to the children that share available space |
| Leading / trailing item | Main-axis alignment or auto margins on the relevant child |
The design reference uses space-x-* / space-y-* for gaps. This checkout's
stack uses gap-x-* / gap-y-*, so retain gap utilities when preserving its
layout. Its leading and trailing classes use auto margins; replacing them
with container justification alone can move other siblings.
Replace the layout elements with semantic HTML, add the base flex or grid
classes, then map spacing and child behavior. Check both orientations,
container height, wrapping and narrow widths after migration. A 12-column
row can use grid grid-cols-12 with appropriate column spans.