storybook/docs/snippets/react/storybook-addon-a11y-disable.mdx.mdx
2022-07-07 19:47:29 +01:00

22 lines
388 B
Plaintext

```md
<!-- MyComponent.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { MyComponent } from './MyComponent';
<Meta
title="Disable a11y addon"
component={MyComponent} />
<Story
name="NonA11yStory"
parameters={{
a11y: {
// This option disables all a11y checks on this story
disable: true,
},
}}>
<MyComponent />
</Story>
```