Skip to content

Commit

Permalink
Fix documentation of Flex component to no longer be experimental (Wor…
Browse files Browse the repository at this point in the history
…dPress#41926)

I'm not sure when it happened, but in WordPress 6.0 the three Flex components are no longer marked as experimental.
  • Loading branch information
fabiankaegy authored Jun 24, 2022
1 parent 8df4bcb commit f3cf24a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions packages/components/src/flex/flex/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Flex

<div class="callout callout-alert">
This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
</div>

`Flex` is a primitive layout component that adaptively aligns child content horizontally or vertically. `Flex` powers components like `HStack` and `VStack`.

## Usage
Expand All @@ -12,20 +8,19 @@ This feature is still experimental. “Experimental” means this is an early im

```jsx
import {
__experimentalFlex as Flex,
__experimentalFlexBlock as FlexBlock,
__experimentalFlexItem as FlexItem,
__experimentalText as Text,
Flex,
FlexBlock,
FlexItem,
} from '@wordpress/components';

function Example() {
return (
<Flex>
<FlexItem>
<Text>Code</Text>
<p>Code</p>
</FlexItem>
<FlexBlock>
<Text>Poetry</Text>
<p>Poetry</p>
</FlexBlock>
</Flex>
);
Expand Down

0 comments on commit f3cf24a

Please sign in to comment.