mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:22:09 +08:00
20 lines
335 B
Plaintext
20 lines
335 B
Plaintext
```ts
|
|
// your-component.stories.ts
|
|
|
|
import { Meta } from '@storybook/angular';
|
|
|
|
export default {
|
|
component: YourComponent,
|
|
decorators: [
|
|
(storyFunc) => {
|
|
const story = storyFunc();
|
|
|
|
return {
|
|
...story,
|
|
template: `<div style="margin: 3em">${story.template}</div>`,
|
|
};
|
|
},
|
|
],
|
|
} as Meta;
|
|
```
|