`forwardedAs` prop similar to styled-components
Open
feature: proposal 💬
needs: triage 🏷
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 413
- PR merge metrics
- No merged PRs in 30d
Description
## Describe the feature
Is it possible to provide `forwardedAs` prop similar to that of [`styled-components`](https://styled-components.com/docs/api#forwardedas-prop) along with the usual `as` prop?
## Motivation
When nesting and overriding styled components we sometimes end up overriding the custom component with the as prop.
```
const Text = styled.p``
const Title = styled(Text)``
Title
```
## Possible implementations
This could be solved with the help of a `forwardedAs` prop
```
Title
```
## Related Issues
N.A.
Contributor guide
Assessment
This issue has not been assessed yet.