Closed ItsJonQ closed 4 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/itsjonq/g2/7gefxtygh
✅ Preview: https://g2-git-update-control-group-item-layout-rendering.itsjonq.vercel.app
Merging it up 😊
This update makes it easier to customize layout (width) rendering for control items within
ControlGroup
.ControlGroup
now accepts atemplateColumns
prop, which accepts CSSgrid-template-columns
values. PassingtemplateColumns
intoControlGroup
will render the component with aGrid
vs aFlex
.For example, here is the code to render the Grid-based layout seen in the above screenshot:
Resolves https://github.com/ItsJonQ/g2/issues/151