mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:22:09 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
23 lines
501 B
Plaintext
23 lines
501 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
import { html } from 'lit-html';
|
|
|
|
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>`,
|
|
};
|
|
```
|