mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
24 lines
436 B
Plaintext
24 lines
436 B
Plaintext
```ts
|
|
// MyComponent.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
|
|
import MyComponent from './MyComponent.vue';
|
|
|
|
const meta: Meta<typeof MyComponent> = {
|
|
component: MyComponent,
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj<typeof MyComponent>;
|
|
|
|
export const NonA11yStory: Story = {
|
|
parameters: {
|
|
a11y: {
|
|
// This option disables all a11y checks on this story
|
|
disable: true,
|
|
},
|
|
},
|
|
};
|
|
```
|