{"id":20934905,"url":"https://github.com/fouita/svelte-tw-tooltip","last_synced_at":"2026-03-07T06:32:20.912Z","repository":{"id":129139237,"uuid":"295144600","full_name":"fouita/svelte-tw-tooltip","owner":"fouita","description":"Tooltip works with svelte and tailwindcss","archived":false,"fork":false,"pushed_at":"2021-11-26T10:23:37.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T14:48:34.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","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/fouita.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":"2020-09-13T12:16:05.000Z","updated_at":"2023-11-27T21:46:47.000Z","dependencies_parsed_at":"2023-07-03T20:31:28.786Z","dependency_job_id":null,"html_url":"https://github.com/fouita/svelte-tw-tooltip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fouita/svelte-tw-tooltip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fouita%2Fsvelte-tw-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fouita%2Fsvelte-tw-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fouita%2Fsvelte-tw-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fouita%2Fsvelte-tw-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fouita","download_url":"https://codeload.github.com/fouita/svelte-tw-tooltip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fouita%2Fsvelte-tw-tooltip/sbom","scorecard":{"id":407837,"data":{"date":"2025-08-11","repo":{"name":"github.com/fouita/svelte-tw-tooltip","commit":"4fc59cac7c50bb09d9d846056fab4b235b51fc3a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-wv8q-r932-8hc7","Warn: Project is vulnerable to: GHSA-8266-84wp-wv5c"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T21:50:43.618Z","repository_id":129139237,"created_at":"2025-08-18T21:50:43.618Z","updated_at":"2025-08-18T21:50:43.618Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30209086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-18T22:11:53.950Z","updated_at":"2026-03-07T06:32:20.895Z","avatar_url":"https://github.com/fouita.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Svelte and Tailwind tooltip component\n\nEasy to use Tooltip component for your svelte and tailwindcss projects\n\n## Install\n\n```bash\n $npm i @fouita/tooltip -D\n```\n\n## Usage\n\nImport the tooltip component and use it like the following\n\n![fouita tooltip](https://cdn.fouita.com/assets/pics/template/tooltip/tooltip-simple.jpg)\n\n```html\n\u003cscript\u003e\n\timport Tooltip from '@fouita/tooltip'\n\u003c/script\u003e\n\n\u003cdiv class=\"m-4 p-4 border rounded text-center relative\"\u003e\n    Element 1\n    \u003cTooltip pointer=middle position=top text=\"Middle Top\" show/\u003e\n\u003c/div\u003e\n```\n\n### Positions\n* top\n* left \n* right\n* bottom\n\n### Pointer\n* start\n* middle\n* end\n\n\n## Change Color\n\nYou can use `color` and `text_color` props to customize the color \n\n![fouita tooltip](https://cdn.fouita.com/assets/pics/template/tooltip/tooltip-color.jpg)\n\n\n```html\n\u003cdiv class=\"m-4 p-4 border rounded text-center relative\"\u003e\n    Element 1\n    \u003cTooltip pointer=start position=top text=\"Start Top\" text_color=red-100 color=red-700 show /\u003e\n\u003c/div\u003e  \n```\n\n## Hover action\n\nTo show the tooltip when hovering on an element you can use `on:mouseenter` and `on:mouseleave` events and toggle a show flag, like the following.\n\n![fouita tooltip](https://cdn.fouita.com/assets/pics/template/tooltip/tooltip-hover.jpg)\n\n```html\n\u003cscript\u003e\n\timport Tooltip from '@fouita/tooltip'\n\tlet show_elm = false\n\u003c/script\u003e\n\n\u003cdiv class=\"p-4 w-32 m-20 border rounded text-center relative\" on:mouseenter={() =\u003e show_elm=true} on:mouseleave={() =\u003e show_elm=false}\u003e\n        Hover\n        \u003cTooltip pointer=middle position=top text=\"Info to share!\" w=48 show={show_elm}/\u003e\n\u003c/div\u003e\n```\n\nWe can also customize the width of the tooltip by adding `w` attribute and use the scale used in tailwindcss.\n\n\n## Custom content\n\nTo add custom content to a tooltip we can just add children tags and add some html\n\n![fouita tooltip](https://cdn.fouita.com/assets/pics/template/tooltip/tooltip-click.jpg)\n\n```html\n\u003cscript\u003e\n\timport Tooltip from '@fouita/tooltip'\n\tlet show_elm = false\n\u003c/script\u003e\n\n\u003cdiv class=\"m-20 mt-64 w-32 p-4 border text-center relative cursor-pointer\" on:click={() =\u003e show_elm=!show_elm} \u003e\n        Click\n        \u003cTooltip pointer=end position=right color=\"red-500\" show={show_elm}\u003e\n            \u003cdiv class=\"p-4 w-64 bg-red-500 text-red-100\"\u003e\n                \u003cdiv class=\"text-2xl font-bold mb-2\"\u003eCustom Content!\u003c/div\u003e\n                \u003cp class=\"text-left mb-4\"\u003eLorem ipsum dolor sit, amet consectetur adipisicing elit. Quos dolores excepturi placeat, eos et iste magnam illo voluptates veritatis exercitationem laborum, doloremque eius omnis, enim corrupti inventore rem vero assumenda.\u003c/p\u003e\n                \u003cbutton class=\"border-2 border-white py-2 px-4\"\u003e\n\t\t\t\t\tGreat!\n\t\t\t\t\u003c/button\u003e\n            \u003c/div\u003e\n        \u003c/Tooltip\u003e\n\u003c/div\u003e\n```\n\n\n## About\n\n[Fouita : UI framework for svelte + tailwind components](https://fouita.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffouita%2Fsvelte-tw-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffouita%2Fsvelte-tw-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffouita%2Fsvelte-tw-tooltip/lists"}