Skip to content

Commit

Permalink
Remove "experimental" designation for Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
fullofcaffeine committed Apr 24, 2024
1 parent a9fbf74 commit acfbac5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
6 changes: 1 addition & 5 deletions packages/components/src/grid/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
# Grid

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

`Grid` is a primitive layout component that can arrange content in a grid configuration.

## Usage

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

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/grid/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function UnconnectedGrid(
*
* ```jsx
* import {
* __experimentalGrid as Grid,
* Grid,
* __experimentalText as Text
* } from `@wordpress/components`;
*
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/grid/stories/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Grid } from '..';

const meta: Meta< typeof Grid > = {
component: Grid,
title: 'Components (Experimental)/Grid',
title: 'Components/Grid',
argTypes: {
as: { control: { type: 'text' } },
align: { control: { type: 'text' } },
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 @@ -88,7 +88,13 @@ export { default as FormToggle } from './form-toggle';
export { default as FormTokenField } from './form-token-field';
export { default as GradientPicker } from './gradient-picker';
export { default as CustomGradientPicker } from './custom-gradient-picker';
export { Grid as __experimentalGrid } from './grid';
export {
/**
* @deprecated Import `Grid` instead.
*/
Grid as __experimentalGrid,
Grid,
} from './grid';
export { default as Guide } from './guide';
export { default as GuidePage } from './guide/page';
export { Heading as __experimentalHeading } from './heading';
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', 'grid' ];
const REDIRECTS = [
{
from: /\/components-deprecated-/,
Expand Down

0 comments on commit acfbac5

Please sign in to comment.