Docz: styled-components with docz

Created on 28 Jun 2018  路  1Comment  路  Source: doczjs/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 馃嚙馃嚪

screen shot 2018-06-28 at 17 05 29

question

Most helpful comment

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 鉁岋笍

>All comments

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 鉁岋笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tsnolan23 picture tsnolan23  路  3Comments

koddr picture koddr  路  3Comments

ssylvia picture ssylvia  路  3Comments

w0wka91 picture w0wka91  路  3Comments

fenbka picture fenbka  路  3Comments