-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add ShouldForwardProp option to the twc function #29
Comments
You can use https://react-twc.vercel.app/docs/api-reference#createtwc to do that. |
But isn't it awkward to use the factory for individual components? And what if you also need some global config? Or are you suggesting adding all the different variant keys in a global createTwc? |
@elmarvr I will think about a way to customize it locally. |
Allow to configure transient props for a specific component using the `transientProps` constructor. Closes #29
Allow to configure transient props for a specific component using the `transientProps` constructor. Closes #29
@elmarvr thanks for your suggestion, it is now possible: https://react-twc.vercel.app/docs/guides/adapting-based-on-props#customize-transient-props |
🚀 Feature Proposal
Add ShouldForwardProp option to the twc function
Motivation
I don't want to use the prefixed props syntax
Example
twc.div(({ variant}) => buttonVariants({ variant} ) , (prop) => prop === "variant"))
The text was updated successfully, but these errors were encountered: