callstack / callstack/linaria

add "shouldForwardProp" support

Open
#806 1 comment 13 reactions 0 assignees View on GitHub
feature: proposal 💬 needs: triage 🏷
Dominant language
TypeScript
Stars
12.4k
Forks
413
PR merge metrics
No merged PRs in 30d

Description

## Describe the feature

Emotion has feature called [Customizing prop forwarding](https://emotion.sh/docs/styled#customizing-prop-forwarding) which allow me pass custom attributes.

## Motivation

I use linaria with [Taro](https://github.com/NervJS/taro). Taro is a tool to support developers build [WeChat mini program](https://www.google.com/search?q=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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.