storybook/docs/snippets/web-components/your-component-with-decorator.ts.mdx
2023-05-25 21:04:33 +01:00

14 lines
301 B
Plaintext

```ts
// YourComponent.stories.ts
import { html } from 'lit';
import type { Meta } from '@storybook/web-components';
const meta: Meta<YourComponentProps> = {
component: 'demo-your-component',
decorators: [(story) => html`<div style="margin: 3em">${story()}</div>`],
};
export default meta;
```