-
Hello, I'd like to add a ThemeProvider wrapper from a component library to be used in Interactive code editor, but am unsure where to add this functionality. Any ideas on how to go about this? Everything else works as expected though. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, It is possible to swizzle/wrap/enhance the Root component and add your extra providers at the top of the tree: It is also possible to swizzle the React-Live scope to add custom components and make them available in the playground: |
Beta Was this translation helpful? Give feedback.
Hi,
It is possible to swizzle/wrap/enhance the Root component and add your extra providers at the top of the tree:
https://docusaurus.io/docs/next/using-themes#wrapper-your-site-with-root
It is also possible to swizzle the React-Live scope to add custom components and make them available in the playground:
https://docusaurus.io/docs/next/markdown-features/code-blocks#imports