chore: demo api table

This commit is contained in:
Thomas Allmer 2019-10-27 15:27:29 +01:00
parent c6c0158051
commit 60c8e1533d

View File

@ -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