Grid #1676
Replies: 1 comment 4 replies
-
ContextThe layout grid component adapts to screen size (responsive), ensuring consistency across layouts. The grid creates visual consistency between layouts while allowing flexibility across a wide variety of designs. Based on our design principles, this component is based on a 12 column grid layout. In the package you can find:
<LayoutGrid>
<LayoutGridItem>...</LayoutGridItem>
<LayoutGridItem>...</LayoutGridItem>
</LayoutGrid> ^1.1.0We start developing @s-ui/react-layout-grid@1. This version is mobile-first, which means that the default: .sui-LayoutGrid {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0 -8px;
width: calc(100% + 16px);
}
@media (min-width: 600px) {
.sui-LayoutGrid {
flex-wrap: nowrap;
}
}
Codesandbox DEMO v1^2.0.0The default behavior makes user be declarative with the desired bahavior.
Codesandbox DEMO v2The problemThe transition between v1 and v2 is a pain because it forces users to be declarative on each item SolutionsWe appreciate feedback ❤️ so please let us know which solution or solutions you prefer and also which one might not be considered. You can use reaction icons to each proposed solution for voting:
You can vote as much as you want. Only defined icons will count. You can find out more info in this twitch stream |
Beta Was this translation helpful? Give feedback.
-
Layout Grid
Ready to work on it, reported as issue here
Read the discussion below, the winner is
option C
Beta Was this translation helpful? Give feedback.
All reactions