Open kaiyoma opened 2 years ago
I upgraded to the latest Storybook (6.4.22) and I'm still seeing this. Setting table: { disable: true }
works, but hides the prop everywhere, which isn't desirable here. Setting control: false
does nothing.
This problem is most obvious with function props (e.g. callbacks), where there is no applicable control, so the Control column shows -
to begin with, then setting control: false
just does the same thing, so it appears nothing is happening.
For clarity, I'm looking for a way to hide the row entirely (from Controls only), since including a row with no control is dumb and just creates noise. I still want all props to appear in Docs, but would like Controls to be more streamlined, to make it really easy (and fun!) to play with the component. Having lots of useless rows in the Controls table makes the Storybook experience more difficult than it should be.
Update: something has changed in Storybook here. Now, if you set table: { disable: true }
the prop disappears from Controls, but stays in Docs, which is great for me (exactly the behavior I'm looking for). However, the total count of controls is wrong now:
In the above example, I have no idea where 15
is coming from. š¤·
Getting the same problem on Angular 13 and storybook 6.5.9
Describe the bug According to the docs, setting
control: false
in theargTypes
should hide a control from the Controls addon, but keep it in the Docs page. However, I can't get this value to do anything, whether specified at the story level or file level.To Reproduce Set
control: false
for an arg.System
Additional context Setting
table: { disable: true }
does work, but removes the arg from docs also, which is not what I want.