linaria
linaria copied to clipboard
add "shouldForwardProp" support
Describe the feature
Emotion has feature called Customizing prop forwarding which allow me pass custom attributes.
Motivation
I use linaria with Taro. Taro is a tool to support developers build WeChat mini program with React, but mini program has many custom components which have different attributes compare to HTML tags, so when I wrap a custom component with linaria, all custom attributes got filtered.
Possible implementations
Related Issues
#555 https://github.com/NervJS/taro/issues/7163
Styled components works around uses transient props: https://styled-components.com/docs/api#transient-props
So a $ sign to know what should be passed to the DOM and what should not. Would this make sense here as well? It should be statically analyzable at build time from what I can tell.