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