docz icon indicating copy to clipboard operation
docz copied to clipboard

styled-components with docz

Open mitsuishihidemi opened this issue 8 years ago • 1 comments

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 🇧🇷

screen shot 2018-06-28 at 17 05 29

mitsuishihidemi avatar Jun 28 '18 15:06 mitsuishihidemi

Hi @mitsuishihidemi, do you have 2 options to do that:

  1. You can create a wrapper just around your document by exporting a layout component.

  2. You can pass a path for wrapper property on your doczrc that'll be the wrapper for the entire application ✌️

pedronauck avatar Jun 28 '18 15:06 pedronauck