-
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
Add docs for InnerBlocks orientation prop #23641
Conversation
Size Change: 0 B Total Size: 1.13 MB ℹ️ View Unchanged
|
By default, `InnerBlocks` expects its blocks to be shown in a vertical list. A valid use-case is to style InnerBlocks to appear horizontally. When blocks are styled in such a way, the `orientation` prop can be used to indicate a horizontal layout: | ||
```js | ||
<InnerBlocks | ||
orientation="horizontal" |
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.
Makes me wonder whether we should "embed" the horizontal styles in InnerBlocks instead of being adhoc per block. (Separate discussion though)
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.
Straightforward, succinct, and clear. Good stuff! 🚀
Description
#23416 stablized the
orientation
prop. This PR adds docs for the prop.Types of changes
Documentation