storybook/docs/snippets/svelte/storybook-addon-a11y-disable.js.mdx
2021-11-09 01:41:54 +00:00

24 lines
565 B
Plaintext

```js
// MyComponent.stories.js
import MyComponent from './MyComponent.svelte';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/svelte/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Disable a11y addon',
component: MyComponent,
};
const Template = () => ({ Component: MyComponent });
export const NonA11yStory = Template.bind({});
NonA11yStory.parameters = {
a11y: {
// This option disables all a11y checks on this story
disable: true,
},
};
```