mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
- Newline following filename comment - Fix URLs in comments - Ensure consistent usage of `ts` vs `tsx` language
15 lines
332 B
Plaintext
15 lines
332 B
Plaintext
```ts
|
|
// YourComponent.stories.ts
|
|
|
|
import { html } from 'lit-html';
|
|
|
|
import type { Meta } from '@storybook/web-components';
|
|
|
|
const meta: Meta<YourComponentProps> = {
|
|
title: 'YourComponent',
|
|
component: 'demo-your-component',
|
|
decorators: [(story) => html`<div style="margin: 3em">${story()}</div>`],
|
|
};
|
|
export default meta;
|
|
```
|