Add story parameters
to the item
via the renderLabel
function
#24022
mririgoyen
started this conversation in
Ideas
Replies: 1 comment
-
I second this request. Interestingly enough it seems that there should/could be a storybook/code/core/src/types/modules/api-stories.ts Lines 26 to 65 in 2ebbeed But in the current code I have (SB v8) the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
I need to be able to conditionally add status icons to my Component names. I thought I could easily do this utilizing the
renderLabel
function for the sidebar, however theitem
that is available is quite limited in the information that it has available. According to the Storybook docs, "Parameters are a set of static, named metadata about a story, typically used to control the behavior of Storybook features and addons." However, I cannot access these in the addon config to actually utilize them.Describe the solution you'd like
I would like to be able to access the parameters for each
item
in therenderLabel
function, so that I can make rendering decisions on the title. For example:Describe alternatives you've considered
I've tried to use a custom
storyIndexers
function inmain.ts
, but no matter how I configure it, it never matches any files.Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions