@interop-ui/react-polymorphic
Advanced tools
Comparing version 0.0.1-1 to 0.0.1-2
{ | ||
"name": "@interop-ui/react-polymorphic", | ||
"version": "0.0.1-1", | ||
"version": "0.0.1-2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
@@ -13,12 +13,2 @@ # `react-polymorphic` | ||
```js | ||
import * as React from 'react'; | ||
import { forwardRefWithAs } from '@interop-ui/react-polymorphic'; | ||
const MyComponent = forwardRefWithAs<HTMLDivElement, React.ComponentProps<'div'>>( | ||
(props, forwardedRef) => { | ||
const { as: Comp = 'div' } = props; | ||
return <Comp {...props} ref={forwardedRef}> | ||
} | ||
) | ||
``` | ||
This is an internal utility, not intended for public usage. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15345
14