Skip to content

Commit

Permalink
chore: Add preview warning for Table component (#24731)
Browse files Browse the repository at this point in the history
* chore: Add preview warning for Table component

Adds a preview warning to the Table component doc page

* changefile
  • Loading branch information
ling1726 authored Sep 9, 2022
1 parent de08c96 commit 9e604a1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: Add preview warning for Table component",
"packageName": "@fluentui/react-table",
"email": "lingfangao@hotmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- Don't allow prettier to collapse code block into single line -->
<!-- prettier-ignore -->
> **⚠️ Preview components are considered unstable:**
>
> ```jsx
>
> import { Table } from '@fluentui/react-components/unstable';
>
> ```
>
> - Features and APIs may change before final release
> - Please contact us if you intend to use this in your product
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Table } from '../..';
import descriptionMd from './TableDescription.md';

export { Default } from './Default.stories';
export { Sort } from './Sort.stories';
Expand All @@ -19,4 +20,11 @@ export { CompositeNavigationMode } from './CompositeNavigationMode.stories';
export default {
title: 'Preview Components/Table',
component: Table,
parameters: {
docs: {
description: {
component: [descriptionMd].join('\n'),
},
},
},
};

0 comments on commit 9e604a1

Please sign in to comment.