{"id":16955574,"url":"https://github.com/rcdexta/react-toggletip","last_synced_at":"2025-07-24T07:08:46.599Z","repository":{"id":57346546,"uuid":"131658304","full_name":"rcdexta/react-toggletip","owner":"rcdexta","description":"Simple toggletip and tooltip for your react apps","archived":false,"fork":false,"pushed_at":"2023-12-12T19:34:39.000Z","size":851,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T19:13:05.740Z","etag":null,"topics":["aria","js-library","reactjs","reactjs-components","toggletip","tooltip","tooltip-library"],"latest_commit_sha":null,"homepage":"https://rcdexta.github.io/react-toggletip","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/rcdexta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-30T23:55:07.000Z","updated_at":"2023-12-12T19:34:43.000Z","dependencies_parsed_at":"2025-04-11T21:35:33.707Z","dependency_job_id":"ffd363e5-e95e-45e7-8372-705ebca2fefb","html_url":"https://github.com/rcdexta/react-toggletip","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rcdexta/react-toggletip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Freact-toggletip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Freact-toggletip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Freact-toggletip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Freact-toggletip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcdexta","download_url":"https://codeload.github.com/rcdexta/react-toggletip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcdexta%2Freact-toggletip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265587611,"owners_count":23793160,"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":["aria","js-library","reactjs","reactjs-components","toggletip","tooltip","tooltip-library"],"created_at":"2024-10-13T22:12:41.398Z","updated_at":"2025-07-24T07:08:46.556Z","avatar_url":"https://github.com/rcdexta.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-toggletip\n\n[![npm version](https://badge.fury.io/js/react-toggletip.svg)](https://badge.fury.io/js/react-toggletip)\n[![Build Status](https://travis-ci.org/rcdexta/react-toggletip.svg?branch=master)](https://travis-ci.org/rcdexta/react-toggletip)\n\nSimple toggletip and tooltip for your react apps\n\n![toggletip](https://github.com/rcdexta/react-toggletip/raw/master/assets/screenshot.png)\n\n### Why?\n\nI wanted a simple light-weight tooltip library for react that just does one good thing and does it well - displaying tooltips on hover \n\nFor context as to why it's called a  \"toggletip\", read this [blog](https://inclusive-components.design/tooltips-toggletips/) for details\n\n### Features\n\n* works on all mainstream browsers\n* css only tooltip without additional javascript dependencies\n* uses `aria` attributes for accessibility and to work with screen readers\n* works on icons and other elements\n* supports multiline tooltips\n\n### Installation\n\n```bash\nnpm install --save react-toggletip\n```\n\nor if you are using `yarn`\n\n```bash\nyarn add react-toggletip\n```\n\n### Demo\n\nhttps://rcdexta.github.io/react-toggletip\n\n### Documentation\n\nToggleTip component will render a info icon by default. The default icon can be overridden with props given below. If you want to display tooltips over custom content, wrap ToggleTip around the content.\n\n| Name      | Type                       | Description                                                  |\n| --------- | -------------------------- | ------------------------------------------------------------ |\n| content   | String or array of strings | The tooltip content. Pass array of strings if you want multiline tooltips |\n| placement | string                     | one of `bottom-right`, `bottom`, `bottom-left`,`right`,`left`,`top-right`,`top`,`top-left` |\n| animated  | boolean                    | Disable tooltip animations. Default: true                    |\n| icon      | node                       | Replace info icon with custom icon                           |\n| children  | node                       | Display tooltip on top of custom content instead of icons    |\n\n\n### License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdexta%2Freact-toggletip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcdexta%2Freact-toggletip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcdexta%2Freact-toggletip/lists"}