docz
docz copied to clipboard
styled-components with docz
Question
Hi,
We are using the styled-components on our components library, and we need to pass a ThemeProvider to wrap the component and pass the theme variables and it is being displayed on Payground. Is there a way to hide it? I tried to build my own plugin, but no method fits my needs.
Thanks and congrats for the project 🇧🇷

Hi @mitsuishihidemi, do you have 2 options to do that:
-
You can create a wrapper just around your document by exporting a layout component.
-
You can pass a path for
wrapperproperty on yourdoczrcthat'll be the wrapper for the entire application ✌️