mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +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 { html } from 'lit-html';
|
||||
import '../demo-wc-card.js';
|
||||
@ -17,6 +17,12 @@ A story can be a simple return of `html`
|
||||
`}
|
||||
</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
|
||||
|
||||
Or a function
|
||||
|
Loading…
x
Reference in New Issue
Block a user