UNPKG

react-simpler-modal

Version:

a lightweight, hook-based modal management library for React. It leverages React Context and custom hooks to offer an intuitive, type-safe API for handling multiple modals—making it easy to show, hide, update, and persist modal state across your app.

63 lines (62 loc) 1.72 kB
{ "name": "react-simpler-modal", "private": false, "version": "1.0.6", "type": "module", "repository": "nenorrell/react-simpler-modal", "bugs": "https://github.com/nenorrell/react-simpler-modal", "description": "a lightweight, hook-based modal management library for React. It leverages React Context and custom hooks to offer an intuitive, type-safe API for handling multiple modals—making it easy to show, hide, update, and persist modal state across your app.", "keywords": [ "react", "modal", "hook", "context", "state management", "lightweight", "type-safe", "custom hooks", "multiple modals" ], "author": "royalewcheese", "license": "MIT", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "dev": "vite", "build": "tsup src/index.tsx --dts --format esm,cjs", "lint": "eslint .", "preview": "vite preview", "prepare": "npm run build" }, "peerDependencies": { "react": ">=16.8 <20.0", "react-dom": ">=16.8 <20.0" }, "devDependencies": { "@eslint/js": "^9.21.0", "@types/react": "^19.0.10", "@types/react-dom": "^19.0.4", "@vitejs/plugin-react": "^4.3.4", "eslint": "^9.21.0", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-react-refresh": "^0.4.19", "globals": "^15.15.0", "prettier": "^3.5.3", "prettier-plugin-organize-imports": "^4.1.0", "tsup": "^8.4.0", "typescript": "~5.7.2", "typescript-eslint": "^8.24.1", "vite": "^6.2.0", "vitest": "^3.0.9" }, "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/index.d.ts" } } }