Replies: 2 comments
-
This is a great idea. I wonder if we should also / instead accept ratios
|
Beta Was this translation helpful? Give feedback.
-
I also was wondering about this. Observable Framework has something similar with their grid system. It looks like the way they solve it is by having an explicit sub-container for the grid called a card, and then they allow each card to span multiple rows or columns. Evidence has the
could extend the Group prop over 2 columns instead of splitting it over 1 and 1. I haven't looked at the code, but it should be doable, maybe? Update It should be totally doable with the I would call the |
Beta Was this translation helpful? Give feedback.
-
Description
It would be very helpful if Grid components had a prop to adjust the width of the columns instead of all being the same width by default. For example, if I wanted to show a BigValue and a DataTable next to each other - these components don't need the same amount of space. The BigValue might only need 25% of the space, while the DataTable could use the other 75%.
What problem would this solve?
Greater dashboard customization and more efficient whitespace utilization.
How should it work?
Something like this would be great:
<Grid cols=2 widths=[0.25, 0.75]>
Beta Was this translation helpful? Give feedback.
All reactions