{"id":13755501,"url":"https://github.com/trendmicro-frontend/react-tooltip","last_synced_at":"2025-09-04T14:32:27.617Z","repository":{"id":57167641,"uuid":"102719762","full_name":"trendmicro-frontend/react-tooltip","owner":"trendmicro-frontend","description":"React Tooltip component","archived":false,"fork":false,"pushed_at":"2023-09-22T13:59:53.000Z","size":2259,"stargazers_count":2,"open_issues_count":2,"forks_count":5,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-12-27T11:46:25.606Z","etag":null,"topics":["react","tooltips"],"latest_commit_sha":null,"homepage":"https://trendmicro-frontend.github.io/react-tooltip/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trendmicro-frontend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-09-07T09:40:53.000Z","updated_at":"2023-09-22T13:59:57.000Z","dependencies_parsed_at":"2024-01-17T15:04:33.459Z","dependency_job_id":"b23e378f-325e-47ec-8572-47b99d7a197c","html_url":"https://github.com/trendmicro-frontend/react-tooltip","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trendmicro-frontend%2Freact-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trendmicro-frontend","download_url":"https://codeload.github.com/trendmicro-frontend/react-tooltip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231969978,"owners_count":18453892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","tooltips"],"created_at":"2024-08-03T10:00:55.351Z","updated_at":"2024-12-31T09:32:37.083Z","avatar_url":"https://github.com/trendmicro-frontend.png","language":"JavaScript","readme":"# react-tooltip [![build status](https://travis-ci.org/trendmicro-frontend/react-tooltip.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-tooltip) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-tooltip/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-tooltip?branch=master)\n\n[![NPM](https://nodei.co/npm/@trendmicro/react-tooltip.png?downloads=true\u0026stars=true)](https://nodei.co/npm/@trendmicro/react-tooltip/)\n\nReact Tooltip\n\nDemo: https://trendmicro-frontend.github.io/react-tooltip\n\n## Installation\n\n1. Install the latest version of [react](https://github.com/facebook/react) and [react-tooltip](https://github.com/trendmicro-frontend/react-tooltip):\n\n  ```\n  npm install --save react @trendmicro/react-tooltip\n  ```\n\n2. At this point you can import `@trendmicro/react-tooltip` and its styles in your application as follows:\n\n  ```js\n  import { Tooltip, Infotip } from '@trendmicro/react-tooltip';\n\n  // Be sure to include styles at some point, probably during your bootstraping\n  import '@trendmicro/react-tooltip/dist/react-tooltip.css';\n  ```\n\n## Usage\n```js\n// Right tooltip\n\u003cTooltip content=\"Config settings\"\u003e\n    \u003cbutton\u003eSettings\u003c/button\u003e\n\u003c/Tooltip\u003e\n\n// Right tooltip with a function content\n\u003cTooltip\n    content={() =\u003e {\n        return (\u003cspan style={{ whiteSpace: 'nowrap' }}\u003e{'Right tooltip'}\u003c/span\u003e);\n    }}\n\u003e\n    \u003cspan\u003eHover on me\u003c/span\u003e\n\u003c/Tooltip\u003e\n\n// Top tooltip\n\u003cTooltip placement=\"top\" content=\"Top tooltip\"\u003e\u003cspan\u003eHover on me\u003c/span\u003e\u003c/Tooltip\u003e\n```\n```js\n// Infotip\n\u003cInfotip content=\"This is a simple example for infotip.\"\u003e\n    \u003cspan className=\"icon icon-info-sign\" /\u003e\n\u003c/Infotip \u003e\n\n\u003cInfotip placement=\"rightTop\" content=\"This is a simple example for infotip.\"\u003e\n    \u003cspan className=\"icon icon-info-sign\" /\u003e\n\u003c/Infotip \u003e\n\n\u003cInfotip\n    tooltipStyle={{ wordWrap: 'break-word' }}\n    content=\"Pneumonoultramicroscopicsilicovolcanoconiosis is the longest word. Start01234567890123456789012345678901234567890123456789012345678901234567890123456789End Start0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789End\"\n\u003e\n    \u003cspan\u003eHover on me (infotip with long article)\u003c/span\u003e\n\u003c/Infotip\u003e\n```\n\n## API\n\n### Properties for Tooltip\n\nName | Type | Default | Description \n:--- | :--- | :------ | :----------\nplacement | string | 'right' | One of: 'top', 'right', 'bottom' and 'left'. \u003cbr /\u003eTooltip will display at placement if possible, otherwise tooltip adjust it's location automatically. \nenterDelay | number | 0 | The delay length (in ms) before the tooltip appears.\nleaveDelay | number | 0 | The delay length (in ms) before the tooltip disappears.\nhideOnClick | boolean | false | Hide tooltip when target been clicked.\ndisabled | boolean | false | Disable tooltip.\ntooltipClassName | string |  | The className apply to tooltip itself. You can use it to override style if need.\ntooltipStyle | object |  | The style apply to tooltip itself. You can use it to override style if need.\ncontent | node or function |  | The tooltip content. Required.\n\n### Properties for Infotip\n\nName | Type | Default | Description \n:--- | :--- | :------ | :----------\nplacement | string | 'rightBottom' | One of: 'rightTop', 'rightBottom', 'leftTop', and 'leftBottom'. \u003cbr /\u003eTooltip will display at placement if possible, otherwise tooltip adjust it's location automatically. \nenterDelay | number | 0 | The delay length (in ms) before the infotip appears.\nleaveDelay | number | 0 | The delay length (in ms) before the infotip disappears.\nhideOnClick | boolean | false | Hide infotip when target been clicked.\ndisabled | boolean | false | Disable infotip.\ntooltipClassName | string |  | The className apply to infotip itself. You can use it to override style if need.\ntooltipStyle | object |  | The style apply to infotip itself. You can use it to override style if need.\ncontent | node or function |  | The infotip content. Required.\n\n## License\n\nMIT\n","funding_links":[],"categories":["Trend Micro"],"sub_categories":["React Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro-frontend%2Freact-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrendmicro-frontend%2Freact-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrendmicro-frontend%2Freact-tooltip/lists"}