react-polymorphic-forwardref
Version: 
Provides an enhanced version of "React.forwardRef" to polymorph using the "as" prop.
46 lines (45 loc) • 1.11 kB
JSON
{
  "name": "react-polymorphic-forwardref",
  "description": "Provides an enhanced version of \"React.forwardRef\" to polymorph using the \"as\" prop.",
  "license": "MIT",
  "author": "Ulas Akgun",
  "version": "0.0.9",
  "keywords": [
    "react",
    "polymorphic",
    "forwardRef",
    "as-prop"
  ],
  "homepage": "https://github.com/UlasAkgun/react-polymorphic-forwardref",
  "repository": {
    "type": "git",
    "url": "https://github.com/UlasAkgun/react-polymorphic-forwardref.git"
  },
  "bugs": {
    "url": "https://github.com/UlasAkgun/react-polymorphic-forwardref/issues"
  },
  "scripts": {
    "build": "tsup src/index.ts --format cjs,esm --dts",
    "lint": "tsc"
  },
  "main": "./dist/index.js",
  "module": "./dist/index.mjs",
  "types": "./dist/index.d.ts",
  "files": [
    "dist"
  ],
  "dependencies": {
    "react": "^18.3.1"
  },
  "devDependencies": {
    "@changesets/cli": "^2.27.11",
    "@types/node": "^22.10.5",
    "@types/react": "^18.3.18",
    "tsup": "^8.3.6",
    "typescript": "^5.7.2"
  },
  "peerDependencies": {
    "@types/react": ">=16.8",
    "react": ">=16.8"
  }
}