storybook/docs/snippets/angular/storybook-preview-with-angular-polyfills.js.mdx
2022-02-02 21:00:19 +00:00

21 lines
409 B
Plaintext

```js
// .storybook/preview.js
import { setCompodocJson } from '@storybook/addon-docs/angular';
import docJson from '../documentation.json';
import '../src/polyfills';
setCompodocJson(docJson);
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
docs: { inlineStories: true },
};
```