@storybook/addon-info
Advanced tools
Comparing version 3.2.0 to 3.2.4
@@ -482,3 +482,3 @@ 'use strict'; | ||
'div', | ||
{ key: type.name }, | ||
{ key: type.displayName || type.name }, | ||
_react2.default.createElement( | ||
@@ -485,0 +485,0 @@ 'h2', |
{ | ||
"name": "@storybook/addon-info", | ||
"version": "3.2.0", | ||
"version": "3.2.4", | ||
"description": "A Storybook addon to show additional information for your stories.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -65,2 +65,12 @@ # Storybook Info Addon | ||
## Usage as decorator | ||
It is possible to add infos by default to all components by using a global or story decorator. The drawback is you won't be able to display a distinct info message per story. | ||
It is important to declare this decorator as **the first decorator**, otherwise it won't work well. | ||
``` | ||
addDecorator((story, context) => withInfo('common info')(story)(context)); | ||
``` | ||
## Global options | ||
@@ -67,0 +77,0 @@ |
@@ -352,3 +352,3 @@ /* eslint no-underscore-dangle: 0 */ | ||
const propTables = array.map(type => | ||
<div key={type.name}> | ||
<div key={type.displayName || type.name}> | ||
<h2 style={this.state.stylesheet.propTableHead}> | ||
@@ -355,0 +355,0 @@ "{type.displayName || type.name}" Component |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
288280
133