mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:02:24 +08:00
16 lines
286 B
Plaintext
16 lines
286 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
import { html } from 'lit';
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
export default {
|
|
component: 'custom-button',
|
|
};
|
|
|
|
export const Text = {
|
|
render: () => html`<custom-button label="Hello" @click=${action('clicked')}></custom-button>`,
|
|
};
|
|
```
|