More feedback addressed

This commit is contained in:
jonniebigodes 2022-12-15 20:24:23 +00:00
parent c101804670
commit 9163669687
2 changed files with 15 additions and 2 deletions

View File

@ -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,
},
};
``` ```

View File

@ -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',
]} ]}
/> />