feat(react): add unstable_Stack component#9876
Conversation
|
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 9af6c40 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/617730e5c117980007cdfb79 😎 Browse the preview: https://deploy-preview-9876--carbon-react-next.netlify.app |
|
Question for you @tay1orjones, my code had |
|
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 9af6c40 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/617730e64159820008260c29 😎 Browse the preview: https://deploy-preview-9876--carbon-components-react.netlify.app/ |
|
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 9af6c40 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/617730e5b6b7ea000760f4b0 😎 Browse the preview: https://deploy-preview-9876--carbon-elements.netlify.app |
tay1orjones
left a comment
There was a problem hiding this comment.
I'm super into this implementation! I think the usage of grid gap is a fantastic idea.
I'm happy to knock out some tests for it once any other feedback is incorporated
tay1orjones
left a comment
There was a problem hiding this comment.
Newest changes feel great! 🔥 Consolidating down to just gap and also very much in support of the VStack and HStack exports
Closes #9821
This PR adds in a
Stackcomponent to be used for vertical spacing along with other components in the design system. This is a useful utility in a component-based model when margin is no longer used by components.By default, the
Stackuses agapprop where you can provide a number or a string. If it's a number, it will map to our spacing scale. If it's a string, it will be a custom value and requires a unit.Changelog
New
Changed
carbon-reactRemoved
Testing / Reviewing