mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
- Update web-components snippet per https://github.com/storybookjs/storybook/pull/20053#discussion_r1037861514
16 lines
293 B
Plaintext
16 lines
293 B
Plaintext
```js
|
|
// CSF 2
|
|
import { html } from 'lit-html';
|
|
import './demo-button';
|
|
|
|
export default {
|
|
title: 'components/demo-button',
|
|
component: 'demo-button',
|
|
};
|
|
|
|
export const Primary = ({ primary }) => html`<demo-button ?primary=${primary}></demo-button>`;
|
|
Primary.args = {
|
|
primary: true,
|
|
};
|
|
```
|