{"id":21761772,"url":"https://github.com/ionited/tooltip","last_synced_at":"2026-03-17T01:48:57.568Z","repository":{"id":38064635,"uuid":"384254008","full_name":"ionited/tooltip","owner":"ionited","description":"A simple and lightweight tooltip library","archived":false,"fork":false,"pushed_at":"2024-06-26T22:15:19.000Z","size":66,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-07T21:09:24.553Z","etag":null,"topics":["informative","text","tooltip"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ionited.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-08T21:37:58.000Z","updated_at":"2025-04-04T16:11:04.000Z","dependencies_parsed_at":"2024-06-27T02:10:09.919Z","dependency_job_id":"fd63cda8-1982-46d3-926c-bc39737d4754","html_url":"https://github.com/ionited/tooltip","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"80a3e48119a2620df4eb702940281d48d5948b62"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionited%2Ftooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionited%2Ftooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionited%2Ftooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ionited%2Ftooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ionited","download_url":"https://codeload.github.com/ionited/tooltip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248719155,"owners_count":21150706,"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":["informative","text","tooltip"],"created_at":"2024-11-26T12:09:43.796Z","updated_at":"2026-03-17T01:48:52.524Z","avatar_url":"https://github.com/ionited.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tooltip\n\n\u003e A simple and lightweight tooltip library \n\nA library under 4KB to display informative texts as known as tooltips.\n\n## Quick start\n\nChoose your favorite option below:\n\n### Install with NPM\n\n```\nnpm i @ionited/tooltip\n```\n\n### Get from UNPKG\n\n[https://unpkg.com/@ionited/tooltip@latest/dist/tooltip.js](https://unpkg.com/@ionited/tooltip@latest/dist/tooltip.js)\n\n---\n\n## Usage\n\nTo basic usage you can simply call:\n\n```js\nTooltip(document.querySelector('button')); // Defaults to get title attribute content\n```\n\n### Options\n\n```ts\nTooltip(el: HTMLElement, options?: TooltipOptions): TooltipCore\n\ninterface TooltipOptions {\n  content?: string;\n  contentAttr: string = 'title';\n  showOnClick: boolean = false;\n}\n\ninterface TooltipCore {\n  destroy(): void;\n  hide(): void;\n  show(): void;\n  update(): void;\n}\n```\n\n## License\n\nCopyright (c) 2021 Ion. Licensed under [Mit License](LICENSE).\n\n[https://ionited.io](https://ionited.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionited%2Ftooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fionited%2Ftooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fionited%2Ftooltip/lists"}