How do I display decorator code in source #30517
Unanswered
astjohnpaycor
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
The stories on the documentation pages have a "Show code" option, that typically shows the results of the story render function, but sometimes it's useful to also show surrounding code functionality that you have in a decorator. There doesn't seem to be a way to have that code show as well, even though there are references to being able to do so in the Storybook documentation: https://storybook.js.org/docs/api/doc-blocks/doc-block-source#excludedecorators
The
excludeDecorators
config option is true by default, but changing it tofalse
has no effect.Has anyone figured out a way to accomplish this?
Additional information
Storybook React version: 8.4.2
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions