mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 04:31:06 +08:00
chore: demo api table
This commit is contained in:
parent
c6c0158051
commit
60c8e1533d
@ -1,4 +1,4 @@
|
|||||||
import { Story, Preview, Meta } from '@storybook/addon-docs/blocks';
|
import { Story, Preview, Meta, Props } from '@storybook/addon-docs/blocks';
|
||||||
import { action } from '@storybook/addon-actions';
|
import { action } from '@storybook/addon-actions';
|
||||||
import { html } from 'lit-html';
|
import { html } from 'lit-html';
|
||||||
import '../demo-wc-card.js';
|
import '../demo-wc-card.js';
|
||||||
@ -17,6 +17,12 @@ A story can be a simple return of `html`
|
|||||||
`}
|
`}
|
||||||
</Story>
|
</Story>
|
||||||
|
|
||||||
|
## API
|
||||||
|
|
||||||
|
You can show the api table of a web component at any point in your documentation.
|
||||||
|
|
||||||
|
<Props of={'demo-wc-card'} />
|
||||||
|
|
||||||
## Function stories
|
## Function stories
|
||||||
|
|
||||||
Or a function
|
Or a function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user