ui v2: storybook upgrade and config improvements #695
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Made some changes to config to get all props to appear.
From https://www.npmjs.com/package/storybook-addon-react-docgen#faq I also learned that React must be imported like so when using React.FC:
and a default export is not good enough, the component must also be exported or the props will not appear.
To demo I fixed the Button and its story.
Before
![Screenshot from 2020-11-19 11-33-26](https://user-images.githubusercontent.com/4712430/99702702-c75bba00-2a5b-11eb-9544-7b41e938cbd8.png)
After
![Screenshot from 2020-11-19 11-35-35](https://user-images.githubusercontent.com/4712430/99702707-c88ce700-2a5b-11eb-9405-574a3b340287.png)