react-polymorphic-box
react-polymorphic-box copied to clipboard
Building blocks for strongly typed polymorphic components in React.
# This feature implemented the correctly ref type which retrieves from element passed by as prop ## Previous:  ## After:    - [x] 🤗 Correct Element type...
## Description Polymorphic box has partialized props if "as" component has unioned props. ## Reproduction ``` import React from 'react'; import { Box } from 'react-polymorphic-box'; interface ITestA { value:...
## Description Using displayName and propTypes on a forwardRef component shows error. I guess this is more of an issue with the example code than this library. ## Reproduction https://codesandbox.io/s/typescript-as-prop-with-react-polymorphic-box-forked-hw0l5?file=/src/App.tsx...
## Description Please see [my tweet](https://twitter.com/kripod97/status/1298016811364036608) for further details. ## Reproduction Sandbox with all the information required: https://codesandbox.io/s/typescript-as-prop-with-react-polymorphic-box-vr269?file=/src/App.tsx
First off, thanks for a fantastic package! Long time happy user, first time bug reporter here :) ## Description Updating TypeScript to 5.2.2 (possibly lower versions as well) causes/reveals a...