mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
17 lines
261 B
Plaintext
17 lines
261 B
Plaintext
```js
|
|
// MyComponent.stories.js
|
|
|
|
import { html } from 'lit-html';
|
|
|
|
export default {
|
|
title: 'Path/To/MyComponent',
|
|
component: 'my-component',
|
|
};
|
|
|
|
export const Basic = {};
|
|
|
|
export const WithProp = {
|
|
render: () => html`<my-component prop="value" />`,
|
|
};
|
|
```
|