Repository navigation
components: Promote VStack and HStack - #31300
Conversation
|
Size Change: +858 B (0%) Total Size: 1.31 MB
ℹ️ View Unchanged
|
ec64274 to
0edc7d0
Compare
abd3b35 to
233cbb7
Compare
| import { | ||
| __experimentalHStack as HStack, | ||
| __experimentalText as Text, | ||
| __experimentalView as View, |
There was a problem hiding this comment.
I assume that View is going to be moved quite soon.
| import { HStack, Spacer, Text, View } from '@wordpress/components/ui'; | ||
| import { | ||
| __experimentalHStack as HStack, | ||
| __experimentalSpacer as Spacer, |
There was a problem hiding this comment.
There is no Spacer in @wordpress/components yet. Should we replace it with something else in this README file?
There was a problem hiding this comment.
@sarayourfriend, I rebased this PR and applied all the necessary changes to make the story for HStack render properly in Storybook. I also applied a few changes to match with previously moved components.
The one remaining question is what do we do about all mentions of the Spacer component.
|
We can migrate Spacer as part of this PR? Or add it in a previous PR that this PR then is blocked by? |
|
I opened a Spacer PR here: #31509 We can merge it first and then incorporate it into the stories for HStack and VStack. |
There is no need to wait. I mostly raised it so we are aware that documentation contains |

Description
Promote the HStack and VStack components to experimental exports from
@wordpress/components. These are brand new components.How has this been tested?
Storybook still works. There's nothing to test otherwise because they're new components.
Types of changes
New feature.
Checklist:
*.native.jsfiles for terms that need renaming or removal).