storybook/docs/snippets/svelte/storybook-addon-a11y-disable.mdx.mdx
2021-11-02 19:48:55 +00:00

24 lines
456 B
Plaintext

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