storybook/docs/snippets/angular/storybook-addon-a11y-disable.ts.mdx

26 lines
624 B
Plaintext

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