-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.js
files for terms that need renaming or removal).