Skip to content

Adding ThemeProvider to interactive code editor #4733

Answered by slorber
binhxn asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@binhxn
Comment options

@slorber
Comment options

slorber May 7, 2021
Collaborator

@binhxn
Comment options

Answer selected by binhxn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants