storybook/docs/snippets/web-components/button-story.ts.mdx
2023-02-16 09:13:06 +08:00

20 lines
338 B
Plaintext

```ts
// Button.stories.ts
import type { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
const meta: Meta = {
title: 'Button',
component: 'demo-button',
};
export default meta;
type Story = StoryObj;
export const Primary: Story = {
render: () => html`<demo-button primary></demo-button>`,
};
```