fbredius/storybook

View on GitHub
docs/snippets/angular/your-component-with-decorator.mdx.mdx

Summary

Maintainability
Test Coverage
```md
<!-- YourComponent.stories.mdx -->

import { Meta } from '@storybook/addon-docs';

import { componentWrapperDecorator } from '@storybook/angular';

import { YourComponent } from './your-component.component';

<Meta
  title="YourComponent"
  component={YourComponent}
  decorators={[componentWrapperDecorator((story) => `<div style="margin: 3em">${story}</div>`)]}
/>
```