{"_id":"react-tooltip@6.0.10","bugs":{"url":"https://github.com/ReactTooltip/react-tooltip/issues"},"dist":{"shasum":"e259b215cd39adac785fe74e0ebeaab401887539","tarball":"http://registry-npm.ywwl.com/react-tooltip/download/react-tooltip-6.0.10.tgz","fileCount":23,"integrity":"sha512-dEecVZIbU0aeYgaJtkr1JVmzRolI5+maQwMEWXq8yKnKOYM1Sqx1uEhWtvhOqbYj8i6NdqS9iFf4w8INlZFltg==","signatures":[{"sig":"MEUCIA72iJnFinfbg5q1Qg2UH5VcEEA6tNggU+BBoL75oJWOAiEA90EVMPM+0sfZLJJMvBCJ+Sea701EM3/HkgeEMhda/BE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB264U4hbOC5L9/4kso6RNsD0bypBVq34JKVyakOuUXqAiEAxuOt9+rs14wWGm/RPpBd38FXTcdTYMASMpdf2KA6GO0="}],"unpackedSize":1136639,"size":277934,"noattachment":false,"key":"/react-tooltip/-/react-tooltip-6.0.10.tgz"},"main":"dist/react-tooltip.min.cjs","name":"react-tooltip","type":"module","types":"dist/react-tooltip.d.ts","author":{"name":"ReactTooltip"},"module":"dist/react-tooltip.min.mjs","exports":{".":{"types":"./dist/react-tooltip.d.ts","import":"./dist/react-tooltip.min.mjs","default":"./dist/react-tooltip.min.cjs","require":"./dist/react-tooltip.min.cjs"},"./package.json":"./package.json","./dist/react-tooltip":"./dist/react-tooltip.min.cjs","./dist/react-tooltip.css":"./dist/react-tooltip.min.css","./dist/react-tooltip.d.ts":"./dist/react-tooltip.d.ts"},"gitHead":"237a20bedab8efc653f1adda684f629378c229f7","license":"MIT","private":false,"scripts":{"dev":"node ./prebuild.js --env=development && node ./esbuild.config.dev.mjs","test":"jest","build":"node ./prebuild.js --env=production && npm run types && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.mjs","types":"node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.types.mjs","eslint":"eslint --ext=js --ext=jsx --ext=ts --ext=tsx --fix ./src","esbuild":"esbuild","prepare":"husky","prettier":"prettier --config ./.prettierrc.json --write \"src/**/*{.js,.jsx,.ts,.tsx,.css}\"","postbuild":"npm run types","stylelint":"stylelint \"src/**/*.css\"","bundlesize":"bundlesize","dev-rollup":"node ./prebuild.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.mjs --watch","build-esbuild":"node ./prebuild.js --env=production && node ./esbuild.config.prod.mjs","prepublishOnly":"npm run build","ci:react-version":"node ./scripts/configure-react-version.mjs","benchmark:scaling":"yarn build && node ./benchmarks/run-benchmark.mjs --counts 50,100,500,2000,5000,10000 --timeoutMs 2000 --warmups 1 --repeats 5","benchmark:scaling:full":"node ./benchmarks/run-scaling-series.mjs --counts 50,100,500,2000,5000,10000 --timeoutMs 2000 --warmups 1 --repeats 5","benchmark:scaling:smoke":"yarn build && node ./benchmarks/run-benchmark.mjs --counts 50,100 --timeoutMs 1000 --warmups 0 --repeats 2","benchmark:scaling:aggregate":"node ./benchmarks/aggregate-benchmarks.mjs --latest 3","benchmark:scaling:aggregate:all":"node ./benchmarks/aggregate-benchmarks.mjs --all"},"version":"6.0.10","_npmUser":{"name":"danielbarion","email":"danielbarionn@gmail.com"},"homepage":"https://github.com/ReactTooltip/react-tooltip#readme","keywords":["react","react-component","tooltip","react-tooltip"],"repository":{"url":"git+https://github.com/ReactTooltip/react-tooltip.git","type":"git"},"_npmVersion":"10.9.2","description":"react tooltip component","directories":{},"maintainers":[{"name":"wwayne","email":"wayne.wang0821@gmail.com"},{"name":"aron.helser","email":"aron.helser@kitware.com"},{"name":"alexgurr","email":"thegurrkin@hotmail.co.uk"},{"name":"danielbarion","email":"danielbarionn@gmail.com"},{"name":"jablonski","email":"gabriel.g.jablonski@gmail.com"},{"name":"pdeszynski","email":"pdeszynski@gmail.com"}],"_nodeVersion":"22.14.0","browserslist":{"production":[">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"dependencies":{"clsx":"2.1.1","@floating-ui/dom":"1.7.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"30.3.0","husky":"9.1.7","react":"19.0.0","tslib":"^2.8.1","eslint":"10.2.0","rimraf":"6.1.3","rollup":"4.60.1","esbuild":"0.28.0","postcss":"8.5.10","process":"0.11.10","ts-jest":"29.4.9","ts-node":"10.9.2","minimist":"1.2.8","prettier":"3.8.3","react-dom":"19.0.0","stylelint":"17.8.0","@types/css":"0.0.38","bundlesize":"0.18.2","css-loader":"7.1.4","playwright":"^1.59.1","typescript":"^6.0.0","@types/jest":"30.0.0","@types/node":"25.6.0","lint-staged":"16.4.0","@types/react":"^19.0.0","style-loader":"4.0.0","@types/minimatch":"6.0.0","@types/react-dom":"^19.0.0","rollup-plugin-dts":"6.4.1","@types/css-modules":"1.0.5","jest-transform-css":"6.0.3","rollup-plugin-copy":"3.5.0","eslint-plugin-react":"7.37.5","@testing-library/dom":"^10.4.1","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.32.0","rollup-plugin-string":"3.0.0","rollup-plugin-terser":"7.0.2","rollup-plugin-postcss":"4.0.2","@rollup/plugin-replace":"6.0.3","@testing-library/react":"16.3.0","eslint-config-prettier":"10.1.8","eslint-plugin-jsx-a11y":"6.10.2","eslint-plugin-prettier":"5.5.5","jest-environment-jsdom":"30.3.0","rollup-plugin-analyzer":"4.0.0","rollup-plugin-progress":"1.1.2","@rollup/plugin-commonjs":"29.0.2","rollup-plugin-visualizer":"7.0.1","@rollup/plugin-typescript":"12.3.0","@testing-library/jest-dom":"6.9.1","@typescript-eslint/parser":"8.58.2","eslint-plugin-react-hooks":"7.0.1","rollup-plugin-browsersync":"1.3.3","stylelint-config-prettier":"9.0.5","stylelint-config-standard":"40.0.0","@types/react-test-renderer":"19.1.0","esbuild-css-modules-plugin":"3.1.5","@rollup/plugin-node-resolve":"16.0.3","@testing-library/user-event":"14.6.1","rollup-plugin-html-scaffold":"0.2.0","@typescript-eslint/eslint-plugin":"8.58.2"},"peerDependencies":{"react":">=16.14.0","react-dom":">=16.14.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-tooltip_6.0.10_1793822956441_0.18130092470502446"},"readme":"# react-tooltip\n\n[![Version](http://img.shields.io/npm/v/react-tooltip.svg)](https://www.npmjs.org/package/react-tooltip)\n![typescript](https://badgen.net/badge/icon/typescript?icon=typescript&label)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![npm download][download-image]][download-url]\n![minified](https://badgen.net/bundlephobia/min/react-tooltip)\n![minified gzip](https://badgen.net/bundlephobia/minzip/react-tooltip)\n\n<!-- ![last commit](https://badgen.net/github/last-commit/reacttooltip/react-tooltip) -->\n\n[download-image]: https://img.shields.io/npm/dm/react-tooltip.svg?style=flat-square\n[download-url]: https://npmjs.org/package/react-tooltip\n\nIf you like the project, please give the project a GitHub 🌟\n\n---\n\nWhy do we show ads on our docs?\n\n- ReactTooltip is an open source project, this is the way we found to be financed by the community.\n\n## Demo\n\n[![Edit ReactTooltip](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/gallant-leftpad-8kvtn7?file=/src/App.js)\n\nDocumentation for V4 - [Github Page](https://reacttooltip.github.io/react-tooltip/).\n\nDocumentation for V5 - [ReactTooltip](https://react-tooltip.com/docs/5.x/getting-started).\n\nDocumentation for V6 - [ReactTooltip](https://react-tooltip.com/docs/getting-started).\n\n---\n\n## Installation\n\n```sh\nnpm install react-tooltip\n```\n\nor\n\n```sh\nyarn add react-tooltip\n```\n\n## React Compatibility\n\n`react-tooltip` supports React `16.14.0` and newer through peer dependencies, including React 17, 18, and 19.\n\nThe project is currently validated against React 19, but the published package remains compatible with older supported React versions.\n\n| React version | Supported |\n| ------------- | --------- |\n| 16.14+        | Yes       |\n| 17.x          | Yes       |\n| 18.x          | Yes       |\n| 19.x          | Yes       |\n\n## Server Components\n\n`react-tooltip` is a client-side library. It uses hooks, DOM observers, browser events, and layout measurement, so the tooltip component itself must run inside a client component boundary.\n\nThis works well in frameworks such as Next.js with Server Components, but you should render `<Tooltip />` from a client component and attach your tooltip attributes or selectors from elements rendered under that client boundary.\n\nIf you are using React Server Components, the practical rule is simple:\n\n- server components can render the anchor markup\n- client components should render and control `react-tooltip`\n\nIn Next.js, the usual pattern is to export the tooltip from a small wrapper file marked with `'use client'`.\n\n## Sponsors\n\n### Gold Sponsors 🌟\n\n<a href=\"https://frigade.com/?source=react-tooltip\">\n  <img alt=\"Frigade\" style=\"height: 250px;\" src=\"docs/static/img/sponsors/frigade.png\" />\n</a>\n\nReact Tooltip is proud to be sponsored by [Frigade](https://frigade.com/?source=react-tooltip), a developer tool for building better product onboarding: guided tours, getting started checklists, announcements, etc.\n\n#### Silver Sponsors ✪\n\n<!-- <a href=\"#\">\n  <img alt=\"Slot\" style=\"height: 200px; width: 200px;\" src=\"docs/static/img/sponsors/slot.png\" />\n</a> -->\n\n## Powered by\n\n<p>\n  <a href=\"https://www.digitalocean.com/?refcode=0813b3be1161&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge\">\n    <img src=\"https://opensource.nyc3.cdn.digitaloceanspaces.com/attribution/assets/PoweredByDO/DO_Powered_by_Badge_blue.svg\" width=\"201px\">\n  </a>\n</p>\n\n## Usage\n\n1 . Import the CSS file to set default styling.\n\n> [!WARNING]\\\n> If you are using a version before than `v5.13.0`, you must import the CSS file or the tooltip won't show!\n\n```js\nimport 'react-tooltip/dist/react-tooltip.css'\n```\n\nThis needs to be done only once and only if you are using a version before than `5.13.0`. We suggest you do it on your `src/index.js` or equivalent file.\n\n2 . Import `react-tooltip` after installation.\n\n```js\nimport { Tooltip } from 'react-tooltip'\n```\n\nor if you want to still use the name ReactTooltip as V4:\n\n```js\nimport { Tooltip as ReactTooltip } from 'react-tooltip'\n```\n\n3 . Add `data-tooltip-id=\"<tooltip id>\"` and `data-tooltip-content=\"<your placeholder>\"` to your element.\n\n> `data-tooltip-id` is the equivalent of V4's `data-for`.\n\n```jsx\n<a data-tooltip-id=\"my-tooltip\" data-tooltip-content=\"Hello world!\">\n  ◕‿‿◕\n</a>\n```\n\n4 . Include the `<Tooltip />` element.\n\n> [!NOTE]\\\n> Don't forget to set the id, it won't work without it!\n\n```jsx\n<Tooltip id=\"my-tooltip\" />\n```\n\n## Troubleshooting\n\nBefore trying these, make sure you're running the latest ReactTooltip version with\n\n```sh\nnpm install react-tooltip@latest\n```\n\nor\n\n```sh\nyarn add react-tooltip@latest\n```\n\nPlease check our [troubleshooting section](https://react-tooltip.com/docs/troubleshooting) on our docs.\n\nIf you can't find your problem here, make sure there isn't [an open issue](https://github.com/ReactTooltip/react-tooltip/issues) already covering it.\nIf there isn't, feel free to [submit a new issue](https://github.com/ReactTooltip/react-tooltip/issues/new/choose).\n\n## Article\n\n[How I insert sass into react component](https://medium.com/@wwayne_me/how-i-insert-sass-into-my-npm-react-component-b46b9811c226#.gi4hxu44a)\n\n## Maintainers\n\n[danielbarion](https://github.com/danielbarion) Maintainer - Creator of React Tooltip >= V5.\n\n[gabrieljablonski](https://github.com/gabrieljablonski) Maintainer.\n\n[aronhelser](https://github.com/aronhelser) (inactive).\n\n[alexgurr](https://github.com/alexgurr) (inactive).\n\n[pdeszynski](https://github.com/pdeszynski) (inactive).\n\n[roggervalf](https://github.com/roggervalf) (inactive).\n\n[huumanoid](https://github.com/huumanoid) (inactive)\n\n[wwayne](https://github.com/wwayne) (inactive) - Creator of the original React Tooltip (V1.x ~ V4.x.)\n\nWe would gladly accept a new maintainer to help out!\n\n## Contributing\n\nWe welcome your contribution! Fork the repo, make some changes, submit a pull-request! Our [contributing](CONTRIBUTING.md) doc has some details.\n\n## License\n\nMIT\n","publish_time":1793822956799,"_cnpm_publish_time":1793822956799,"dist-tags":{"beta":"6.0.9-beta.1289.rc.0","latest":"6.0.10"}}