mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 00:41:54 +08:00
Merge branch 'master' into release/3.3
This commit is contained in:
commit
f396a49497
@ -143,7 +143,7 @@ setAddon(infoAddon);
|
||||
|
||||
### React Docgen Integration
|
||||
|
||||
React Docgen is included as part of the @storybook/react package through the use of `babel-plugin-react-docgen` during compile time.
|
||||
React Docgen is included as part of the @storybook/react package through the use of `babel-plugin-react-docgen` during babel compile time.
|
||||
When rendering a story with a React component commented in this supported format, the Addon Info prop table will display the prop's comment in the description column.
|
||||
|
||||
```js
|
||||
@ -175,8 +175,7 @@ DocgenButton.propTypes = {
|
||||
|
||||
export default DocgenButton;
|
||||
```
|
||||
|
||||
Storybook Info Addon should now render all the correct types for your component.
|
||||
Comments above flow types are also supported. Storybook Info Addon should now render all the correct types for your component if the PropTypes are in the same file as the React component.
|
||||
|
||||
## The FAQ
|
||||
|
||||
|
@ -36,7 +36,7 @@ The Storybook webapp UI can be customised with this addon. It can be used to cha
|
||||
|
||||
### [Storyshots](https://github.com/storybooks/storybook/tree/master/addons/storyshots)
|
||||
|
||||
Storyshots is a way to automaticly jest-snapshot all your stories. [More info here](/testing/structural-testing/).
|
||||
Storyshots is a way to automatically jest-snapshot all your stories. [More info here](/testing/structural-testing/).
|
||||
|
||||
## Community Addons
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user