storybook/docs/snippets/web-components/your-component-with-decorator.js.mdx
Kyle Gach b97d94e005 Address feedback
- Newline following filename comment
- Fix URLs in comments
- Ensure consistent usage of `ts` vs `tsx` language
2023-01-12 14:17:39 -07:00

12 lines
231 B
Plaintext

```js
// YourComponent.stories.js
import { html } from 'lit-html';
export default {
title: 'YourComponent',
component: 'demo-your-component',
decorators: [(story) => html`<div style="margin: 3em">${story()}</div>`],
};
```