mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
19 lines
345 B
Plaintext
19 lines
345 B
Plaintext
```ts
|
|
// CSF 2
|
|
|
|
import type { Meta, Story } from '@storybook/web-components';
|
|
|
|
import { html } from 'lit-html';
|
|
|
|
export default {
|
|
title: 'components/Button',
|
|
component: 'demo-button',
|
|
} as Meta;
|
|
|
|
export const Primary: Story = ({ primary }) =>
|
|
html`<demo-button ?primary=${primary}></demo-button>`;
|
|
Primary.args = {
|
|
primary: true,
|
|
};
|
|
```
|