{"library":"react-polymorphed","type":"library","category":null,"description":"react-polymorphed is a TypeScript-focused utility library designed to simplify the creation of type-safe polymorphic React components. It provides a set of types and helper functions that enable components to render as different HTML elements or other React components via an `as` prop, while maintaining strong type inference and preventing common prop errors. Currently at version 2.2.2, the library is actively maintained, with a release cadence typical for a utility focused on React type enhancements, responding to changes in React or TypeScript. Its key differentiator is the comprehensive support for `forwardRef`, `memo`, and `lazy` with polymorphic types, building on foundations laid by `react-polymorphic-types` to offer a robust and developer-friendly experience for complex component patterns.","language":"javascript","status":"active","version":"2.2.2","tags":["javascript","react","typescript","polymoprhic-components","as-prop"],"install":[{"cmd":"npm install react-polymorphed","imports":["import { PolymorphicComponent } from 'react-polymorphed';","import { PolyRefFunction } from 'react-polymorphed';","import { PolyMemoComponent } from 'react-polymorphed';","import { OnlyAs } from 'react-polymorphed';"]},{"cmd":"yarn add react-polymorphed","imports":[]},{"cmd":"pnpm add react-polymorphed","imports":[]}],"homepage":null,"github":"https://github.com/nasheomirro/react-polymorphed","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-polymorphed","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/react-polymorphed/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}