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
SB Docs has a DocsContainer component that adds a bunch of context providers including: DocsContext, Theme, MDX, as well as some global page formatting. Most Doc Blocks need this context to function.
We can't add this wrapper in @storybook/core because it adds a bad dependency. Therefore it's automatically inserted by the MDX compiler and also included inside the DocsPage component.
However, the current structure is limited in the following ways:
Problem
SB Docs has a
DocsContainer
component that adds a bunch of context providers including: DocsContext, Theme, MDX, as well as some global page formatting. Most Doc Blocks need this context to function.We can't add this wrapper in
@storybook/core
because it adds a bad dependency. Therefore it's automatically inserted by the MDX compiler and also included inside the DocsPage component.However, the current structure is limited in the following ways:
docs
override e.g. CSF Stories with MDX Docs recipe not working #7810 -- user would also need to add this codeSolution
docsContainer
parameter (dependency injection)content
prop =>children
)The text was updated successfully, but these errors were encountered: