mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:11:49 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
28 lines
637 B
Plaintext
28 lines
637 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
import { html } from 'lit-html';
|
|
|
|
const meta: Meta = {
|
|
title: 'Button',
|
|
component: 'demo-button',
|
|
};
|
|
export default meta;
|
|
|
|
type Story = StoryObj;
|
|
|
|
export const Primary: Story = {
|
|
render: () => html`<demo-button .background="#ff0" .label="Button"></demo-button>`,
|
|
};
|
|
|
|
export const Secondary: Story = {
|
|
render: () => html`<demo-button .background="#ff0" .label="😄👍😍💯"></demo-button>`,
|
|
};
|
|
|
|
export const Tertiary: Story = {
|
|
render: () => html`<demo-button .background="#ff0" .label="📚📕📈🤓"></demo-button>`,
|
|
};
|
|
```
|