styled-components-website icon indicating copy to clipboard operation
styled-components-website copied to clipboard

Docs missing examples of arguments accepted by `withConfig` for v5

Open bcole808 opened this issue 4 years ago • 0 comments

The documentation includes examples of the shouldForwardProp option which can be passed to withConfig, but it does not mention the other props which are accepted such as displayName.

Should the docs be updated to show that displayName can also be passed to withConfig? Or is this argument not intended to be used directly via withConfig?

babel-plugin-styled-components does not use the display name defined on the component itself if withConfig has been used and displayName has not been passed as an argument to withConfig.

Related: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/52598

bcole808 avatar Apr 27 '21 17:04 bcole808