Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs missing examples of arguments accepted by withConfig for v5 #782

Open
bcole808 opened this issue Apr 27, 2021 · 0 comments
Open

Docs missing examples of arguments accepted by withConfig for v5 #782

bcole808 opened this issue Apr 27, 2021 · 0 comments

Comments

@bcole808
Copy link
Contributor

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: DefinitelyTyped/DefinitelyTyped#52598

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant