Fix mdx page reference
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Meta, Preview, Props } from '@storybook/addon-docs/blocks';
|
||||
import { Meta, Preview, ArgsTable } from '@storybook/addon-docs/blocks';
|
||||
import { LoadingBar } from './LoadingBar';
|
||||
|
||||
<Meta title="MDX|LoadingBar" component={LoadingBar} />
|
||||
@@ -6,3 +6,17 @@ import { LoadingBar } from './LoadingBar';
|
||||
# LoadingBar
|
||||
|
||||
The LoadingBar is used as a simple loading slider animation in the top of its container.
|
||||
|
||||
<Preview>
|
||||
<div style={{ height: '200px', width: '400px' }}>
|
||||
<LoadingBar containerWidth={400} height={2} width={128} />
|
||||
</div>
|
||||
</Preview>
|
||||
|
||||
```jsx
|
||||
<div style={{ height: '200px', width: '400px' }}>
|
||||
<LoadingBar containerWidth={400} height={2} width={128} />
|
||||
</div>
|
||||
```
|
||||
|
||||
<ArgsTable of={LoadingBar} />
|
||||
|
||||
@@ -8,13 +8,17 @@ import { LoadingBar, LoadingBarProps, useStyles2 } from '@grafana/ui';
|
||||
import { DashboardStoryCanvas } from '../../utils/storybook/DashboardStoryCanvas';
|
||||
import { withCenteredStory } from '../../utils/storybook/withCenteredStory';
|
||||
|
||||
import mdx from './LoadingBar.mdx';
|
||||
|
||||
const meta: ComponentMeta<typeof LoadingBar> = {
|
||||
title: 'General/LoadingBar',
|
||||
component: LoadingBar,
|
||||
decorators: [withCenteredStory],
|
||||
parameters: {
|
||||
controls: {},
|
||||
docs: {},
|
||||
docs: {
|
||||
page: mdx,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user