mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 05:51:21 +08:00
23 lines
496 B
Plaintext
23 lines
496 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
import { html } from 'lit';
|
|
|
|
export default {
|
|
title: 'Button',
|
|
component: 'demo-button',
|
|
};
|
|
|
|
export const Primary = {
|
|
render: () => html`<demo-button .background="#ff0" .label="Button"></demo-button>`,
|
|
};
|
|
|
|
export const Secondary = {
|
|
render: () => html`<demo-button .background="#ff0" .label="😄👍😍💯"></demo-button>`,
|
|
};
|
|
|
|
export const Tertiary = {
|
|
render: () => html`<demo-button .background="#ff0" .label="📚📕📈🤓"></demo-button>`,
|
|
};
|
|
```
|