mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:51:48 +08:00
17 lines
474 B
Markdown
17 lines
474 B
Markdown
```ts filename=".storybook/preview.ts" renderer="react" language="ts"
|
|
// Replace your-framework with the framework you are using (e.g., react-vite, nextjs, experimental-nextjs-vite)
|
|
import { definePreview } from '@storybook/your-framework';
|
|
import addonA11y from '@storybook/addon-a11y';
|
|
|
|
export default definePreview({
|
|
// 👇 Add your addons here
|
|
addons: [addonA11y()],
|
|
parameters: {
|
|
// type-safe!
|
|
a11y: {
|
|
options: { xpath: true },
|
|
},
|
|
},
|
|
});
|
|
```
|