styled-components-website
styled-components-website copied to clipboard
Docs missing examples of arguments accepted by `withConfig` for v5
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