Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@interop-ui/react-polymorphic

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interop-ui/react-polymorphic - npm Package Compare versions

Comparing version 0.0.1-1 to 0.0.1-2

2

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc