storybook/docs/snippets/common/component-story-disable-controls.mdx.mdx
2021-08-09 19:19:01 +01:00

29 lines
420 B
Plaintext

```md
<!--- YourComponent.stories.mdx -->
import { Meta, Story, Canvas } from '@storybook/addon-docs';
import { YourComponent } from './YourComponent'
<Meta
title="My Story"
component={YourComponent}
argTypes={{
foo:{
table:{
disable: true,
}
}
}} />
<Canvas>
<Story
name="My Story"
args={{
foo: 'bar',
}}>
{Template.bind({})}
</Story>
</Canvas>
```