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
importtype{Meta}from'@storybook/react';import{RouterProvider}from'react-aria-components';// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-exportconstmeta={title: 'Components/RouterProvider',component: RouterProvider,parameters: {// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layoutlayout: 'centered',},}satisfiesMeta<typeofRouterProvider>;exportdefaultmeta;export{RouterProviderStory}from'./RouterProvider.story';
Where that story re-exported from another file is a way for us to customize the rendering of the component and display source code appropriate for our use case:
The component being rendered and the source code of the component is not relevant for this discussion, and therefore not included to not distract the focus from the core issue.
When updating to version 8.1.0, these MDX <Stories /> block failed to render.
Additional information
For some reason, stories generated by autodocs tags: ['autodocs'], gets story blocks generated correctly.
But stories that are hand-written using MDX do not.
Create a reproduction
No response
The text was updated successfully, but these errors were encountered:
shilman
changed the title
Storybook <Stories /> doc block in mdx no longer rendering after upgrading to version 8.1.0Stories doc block in mdx broken in 8.1.0
May 15, 2024
Discussed in #27142
Originally posted by ryanelian May 15, 2024
Summary
I have stories written like this:
Where that story re-exported from another file is a way for us to customize the rendering of the component and display source code appropriate for our use case:
The component being rendered and the source code of the component is not relevant for this discussion, and therefore not included to not distract the focus from the core issue.
When updating to version 8.1.0, these MDX
<Stories />
block failed to render.Additional information
For some reason, stories generated by autodocs
tags: ['autodocs'],
gets story blocks generated correctly.But stories that are hand-written using MDX do not.
Create a reproduction
No response
The text was updated successfully, but these errors were encountered: