mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:31:48 +08:00
20 lines
309 B
Plaintext
20 lines
309 B
Plaintext
```js
|
|
// MyComponent.stories.js|jsx|ts|tsx
|
|
|
|
import { MyComponent } from './YourComponent';
|
|
|
|
export default {
|
|
component: MyComponent,
|
|
};
|
|
|
|
export const NonA11yStory = {
|
|
args: {},
|
|
parameters: {
|
|
a11y: {
|
|
// This option disables all a11y checks on this story
|
|
disable: true,
|
|
},
|
|
},
|
|
};
|
|
```
|