storybook-addon-vue-info
A Storybook addon that shows component's information.
Install
Usage
Wrap story with withInfo
function.
Or, set this addon as a decorator.
You can specify default options with setDefaults
.
Options
This addon accepts @storybook/addon-info like options.
Name | Data type | Default value | Description |
---|---|---|---|
header |
boolean |
true |
Whether to show header or not. |
source |
boolean |
true |
Whether to show source(usage) or not. |
styles |
object |
{} |
Styles override. See src/options/InfoAddonOptions.ts for available fields. |
summary |
string |
'' |
Summary for the story. Accepts Markdown. |
propTables |
(string\|Component)[]\|null |
null |
Display prop tables with these components. string[] is recommended. If specified null or false , this addon use outermost tag in template . |
Example
For real example, see example
directory.