storybook/docs/snippets/angular/your-component-with-decorator.ts.mdx

12 lines
290 B
Plaintext

```ts
// your-component.stories.ts
import { Meta, componentWrapperDecorator } from '@storybook/angular';
export default {
title: 'YourComponent',
component: YourComponent,
decorators: [componentWrapperDecorator((story) => `<div style="margin: 3em">${story}</div>`)],
} as Meta;
```