storybook/docs/snippets/web-components/csf-2-example-starter.ts.mdx
Kyle Gach b97d94e005 Address feedback
- Newline following filename comment
- Fix URLs in comments
- Ensure consistent usage of `ts` vs `tsx` language
2023-01-12 14:17:39 -07:00

18 lines
343 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,
};
```