-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Glamorous -> Emotion -- Prop filtering? #653
Comments
There is import isPropValid from '@emotion/is-prop-valid'
const StyledTextarea = styled(TextareaAutosize, { shouldForwardProp: isPropValid })({
fontSize: '16px',
}) You can also look at this test case to see how it can be used. |
Yeah, they are part of the public API. They might have not been documented though - this is quite a new option, implemented not that long time ago. Would be good to have a docs for it, I've created an issue about it here. We'd love some help with that 😉 |
Thank you. It appears as though the |
Greetings! Recent conversations about the potential deprecation of Glamorous led me to consider a migration to Emotion. paypal/glamorous#419
While the API's are similar, they are not quite identical. One feature that my project relies on heavily in Glamorous is prop filtering, as described by the
rootEl
,forwardProps
, andfilterProps
sections at https://glamorous.rocks/apiWould this be something that you might consider including in Emotion?
Thanks!
The text was updated successfully, but these errors were encountered: