mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
23 lines
394 B
Plaintext
23 lines
394 B
Plaintext
```ts
|
|
// MyComponent.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
const meta: Meta = {
|
|
title: 'Disable a11y addon',
|
|
component: 'my-component',
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj;
|
|
|
|
export const ExampleStory: Story = {
|
|
parameters: {
|
|
a11y: {
|
|
// This option disables all a11y checks on this story
|
|
disable: true,
|
|
},
|
|
},
|
|
};
|
|
```
|