mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:22:09 +08:00
19 lines
360 B
Plaintext
19 lines
360 B
Plaintext
```js
|
|
// .storybook/preview.js
|
|
|
|
import DocumentationTemplate from './DocumentationTemplate.mdx';
|
|
|
|
export const parameters = {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
docs: {
|
|
page: DocumentationTemplate, // The replacement template to use
|
|
},
|
|
};
|
|
```
|