fbredius/storybook

View on GitHub
docs/snippets/web-components/button-story-component-decorator.js.mdx

Summary

Maintainability
Test Coverage
```js
// demo-button.stories.js

import { html } from 'lit-html';

import './demo-button';

export default {
  title: 'Button',
  decorators: [(story) => html`<div style="margin: 3em">${story()}</div>`],
};

export const Primary = () => html`<demo-button primary></demo-button>`;
```