Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove "experimental" designation for HStack
  • Loading branch information
fullofcaffeine committed Apr 24, 2024
commit 66f606dda1d0ade9b35470c51609e7bfdc2997a2
10 changes: 3 additions & 7 deletions packages/components/src/h-stack/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# HStack

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

`HStack` (Horizontal Stack) arranges child elements in a horizontal line.

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

```jsx
import {
__experimentalHStack as HStack,
HStack,
__experimentalText as Text,
} from '@wordpress/components';

Expand Down Expand Up @@ -85,7 +81,7 @@ When a `Spacer` is used within an `HStack`, the `Spacer` adaptively expands to t

```jsx
import {
__experimentalHStack as HStack,
HStack,
__experimentalSpacer as Spacer,
__experimentalText as Text,
} from '@wordpress/components';
Expand All @@ -107,7 +103,7 @@ function Example() {

```jsx
import {
__experimentalHStack as HStack,
HStack,
__experimentalSpacer as Spacer,
__experimentalText as Text,
} from '@wordpress/components';
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/h-stack/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function UnconnectedHStack(
*
* ```jsx
* import {
* __experimentalHStack as HStack,
* HStack,
* __experimentalText as Text,
* } from `@wordpress/components`;
*
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/h-stack/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const JUSTIFICATIONS = {

const meta: Meta< typeof HStack > = {
component: HStack,
title: 'Components (Experimental)/HStack',
title: 'Components/HStack',
argTypes: {
as: {
control: { type: null },
Expand Down
8 changes: 7 additions & 1 deletion packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ export { Grid as __experimentalGrid } from './grid';
export { default as Guide } from './guide';
export { default as GuidePage } from './guide/page';
export { Heading as __experimentalHeading } from './heading';
export { HStack as __experimentalHStack } from './h-stack';
export {
/**
* @deprecated Import `HStack` instead.
*/
HStack as __experimentalHStack,
HStack,
} from './h-stack';
export { default as Icon } from './icon';
export type { IconType } from './icon';
export { default as IconButton } from './button/deprecated';
Expand Down
2 changes: 1 addition & 1 deletion storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
( function redirectIfStoryMoved() {
const PREVIOUSLY_EXPERIMENTAL_COMPONENTS = [ 'navigation' ];
const PREVIOUSLY_EXPERIMENTAL_COMPONENTS = [ 'navigation', 'hstack' ];
const REDIRECTS = [
{
from: /\/components-deprecated-/,
Expand Down