{"name":"react-tooltip","version":"5.29.1","keywords":["react","react-component","tooltip","react-tooltip"],"author":{"name":"ReactTooltip"},"license":"MIT","_id":"react-tooltip@5.29.1","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"}],"homepage":"https://github.com/ReactTooltip/react-tooltip#readme","bugs":{"url":"https://github.com/ReactTooltip/react-tooltip/issues"},"dist":{"shasum":"ba0b80b04d66822590976d2a32f47544fd9feee2","tarball":"http://registry-npm.ywwl.com/react-tooltip/download/react-tooltip-5.29.1.tgz","fileCount":22,"integrity":"sha512-rmJmEb/p99xWhwmVT7F7riLG08wwKykjHiMGbDPloNJk3tdI73oHsVOwzZ4SRjqMdd5/xwb/4nmz0RcoMfY7Bw==","signatures":[{"sig":"MEUCIQCGF8PRszOA/fgeaayAmNuYNdptp1eVHB+Tko12qXxzlgIgFpe+BEJ+Tjuvx2HaE+7oZEoTE+LYzDjumVqZgj8twaM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":863934,"size":205826,"noattachment":false,"key":"/react-tooltip/-/react-tooltip-5.29.1.tgz"},"main":"dist/react-tooltip.min.cjs","types":"dist/react-tooltip.d.ts","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":"9faf2c6052eb6fe4c3be3c445faf124836769697","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.js","types":"node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.types.js","eslint":"eslint --ext=js --ext=jsx --ext=ts --ext=tsx --fix ./src","esbuild":"esbuild","prepare":"husky install","prettier":"prettier --config ./.prettierrc.json --write \"src/**/*{.js,.jsx,.ts,.tsx,.css}\"","postbuild":"npm run types && npm run bundlesize","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.js --watch","build-esbuild":"node ./prebuild.js --env=production && node ./esbuild.config.prod.mjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"jablonski","email":"gabriel.g.jablonski@gmail.com"},"repository":{"url":"git+https://github.com/ReactTooltip/react-tooltip.git","type":"git"},"_npmVersion":"10.8.2","description":"react tooltip component","directories":{},"_nodeVersion":"20.17.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":{"classnames":"^2.3.0","@floating-ui/dom":"^1.6.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.4.3","husky":"8.0.3","react":"16.14.0","eslint":"8.35.0","rimraf":"^3.0.2","rollup":"2.79.1","esbuild":"0.17.11","postcss":"8.4.21","process":"^0.11.10","ts-jest":"29.0.5","ts-node":"^10.9.1","minimist":"^1.2.8","prettier":"2.8.4","react-dom":"16.14.0","stylelint":"^13.13.1","@types/css":"^0.0.33","bundlesize":"^0.18.1","css-loader":"6.7.3","typescript":"4.9.5","@types/jest":"29.4.0","@types/node":"^18.15.3","lint-staged":"13.1.2","@types/react":"^18.2.17","style-loader":"^3.3.0","@types/react-dom":"18.0.11","rollup-plugin-dts":"5.2.0","@types/css-modules":"^1.0.2","jest-transform-css":"6.0.1","rollup-plugin-copy":"^3.4.0","eslint-plugin-react":"7.32.2","eslint-config-airbnb":"19.0.4","eslint-plugin-import":"2.27.5","rollup-plugin-string":"^3.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-postcss":"^4.0.1","@rollup/plugin-replace":"4.0.0","@testing-library/react":"12.1.5","eslint-config-prettier":"8.6.0","eslint-plugin-jsx-a11y":"6.7.1","eslint-plugin-prettier":"^4.0.0","jest-environment-jsdom":"29.4.3","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-filesize":"^9.1.1","rollup-plugin-progress":"^1.1.2","@rollup/plugin-commonjs":"22.0.2","rollup-plugin-visualizer":"5.9.0","@rollup/plugin-typescript":"8.5.0","@testing-library/jest-dom":"^5.16.5","@typescript-eslint/parser":"5.54.0","eslint-plugin-react-hooks":"^4.2.0","rollup-plugin-browsersync":"^1.3.3","stylelint-config-prettier":"^8.0.2","stylelint-config-standard":"^22.0.0","@types/react-test-renderer":"^18.0.0","esbuild-css-modules-plugin":"^2.7.1","@rollup/plugin-node-resolve":"14.1.0","@testing-library/user-event":"^14.4.3","rollup-plugin-html-scaffold":"^0.2.0","@typescript-eslint/eslint-plugin":"5.54.0"},"peerDependencies":{"react":">=16.14.0","react-dom":">=16.14.0"},"_npmOperationalInternal":{"tmp":"tmp/react-tooltip_5.29.1_1749903185018_0.7710811080759765","host":"s3://npm-registry-packages-npm-production"},"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":1749903185260,"_cnpm_publish_time":1749903185260,"dist-tags":{"beta":"6.0.9-beta.1289.rc.0","latest":"6.0.10"}}