You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if this is still relevant in SB 7.x.
Canvas supports
mdxSource
but does not allow to set a language and always fallsback tojsx
.Therefore it is not possible to set it to
tsx
.Describe the solution you'd like
Right now Canvas has only the
mdxSource
prop:storybook/addons/docs/src/blocks/Canvas.tsx
Line 17 in 0404fa9
This value is handed over to
getSourceProps
without specifying a language:storybook/addons/docs/src/blocks/Canvas.tsx
Line 33 in 0404fa9
getSourceProps
will usejsx
as default:storybook/addons/docs/src/blocks/Source.tsx
Line 150 in 0404fa9
It would be cool if
mdxSource
would be an object and allows passing overSourceProps
or if we could add an optionalmdxSourceLanguage
propertyAre you able to assist to bring the feature to reality?
yes
The text was updated successfully, but these errors were encountered: