mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 02:31:05 +08:00
More feedback addressed
This commit is contained in:
parent
c101804670
commit
9163669687
@ -1,5 +1,5 @@
|
|||||||
```js
|
```js
|
||||||
// CustomPageProvider.js
|
// .storybook/preview.js
|
||||||
|
|
||||||
import { MDXProvider } from '@mdx-js/react';
|
import { MDXProvider } from '@mdx-js/react';
|
||||||
|
|
||||||
@ -17,4 +17,17 @@ export const MyDocsContainer = (props) => (
|
|||||||
<DocsContainer {...props} />
|
<DocsContainer {...props} />
|
||||||
</MDXProvider>
|
</MDXProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export const parameters = {
|
||||||
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
||||||
|
controls: {
|
||||||
|
matchers: {
|
||||||
|
color: /(background|color)$/i,
|
||||||
|
date: /Date$/,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
docs: {
|
||||||
|
container: MyDocsContainer,
|
||||||
|
},
|
||||||
|
};
|
||||||
```
|
```
|
@ -176,7 +176,7 @@ Out of the box, Storybook has a set of components that you can use to customize
|
|||||||
|
|
||||||
<CodeSnippets
|
<CodeSnippets
|
||||||
paths={[
|
paths={[
|
||||||
'common/storybook-auto-docs-override-mdx-container.js.mdx',
|
'common/storybook-preview-auto-docs-override-mdx-container.js.mdx',
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user