storybook/docs/snippets/angular/your-component-with-decorator.ts.mdx
2021-09-03 23:31:04 +01:00

13 lines
300 B
Plaintext

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