-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to make propTablesExclude usage clearer #2568
Conversation
See issue storybookjs#2266, specifically storybookjs#2266 (comment) for discussion.
Codecov Report
@@ Coverage Diff @@
## master #2568 +/- ##
=======================================
Coverage 32.68% 32.68%
=======================================
Files 398 398
Lines 8838 8838
Branches 943 947 +4
=======================================
Hits 2889 2889
- Misses 5293 5295 +2
+ Partials 656 654 -2
Continue to review full report at Codecov.
|
addons/info/README.md
Outdated
@@ -130,7 +130,7 @@ setDefaults({ | |||
inline: true, // Displays info inline vs click button to view | |||
source: true, // Displays the source of story Component | |||
propTables: [/* Components used in story */], // displays Prop Tables with this components | |||
propTablesExclude: [], // Exclude Components from being shown in Prop Tables section | |||
propTablesExclude: [], // Exclude Components from being shown in Prop Tables section. Pass the imported component names as values to the array. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Component name is a string, but here the component itself (class or stateless function) should be passed
Would it make more sense to say "Pass the imported component class or function to the array." |
"Accepts an array of component classes or functions". The component may be defined in the same file, so mentioning imports may be confusing. |
Changed to agreed upon instructions for propTablesExclude to provide clearer documentation.
See issue #2266, specifically #2266 (comment) for discussion.
Issue: #2266
What I did
Added text to documentation make propTablesExclude clearer
How to test
No changes to code made.
Is this testable with jest or storyshots?
No
Does this need a new example in the kitchen sink apps?
No but would maybe be a good idea.
Does this need an update to the documentation?
This is an update.
If your answer is yes to any of these, please make sure to include it in your PR.