{"id":15366878,"url":"https://github.com/cupcakearmy/svelte-hint","last_synced_at":"2026-01-20T14:33:24.040Z","repository":{"id":96683096,"uuid":"447585463","full_name":"cupcakearmy/svelte-hint","owner":"cupcakearmy","description":"Svelte library for tooltips","archived":false,"fork":false,"pushed_at":"2023-10-07T11:35:19.000Z","size":153,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T14:33:30.840Z","etag":null,"topics":["library","popperjs","svelte","tooltip"],"latest_commit_sha":null,"homepage":"https://svelte-hint.pages.dev/","language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cupcakearmy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-13T12:09:13.000Z","updated_at":"2022-07-20T04:46:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"3950f4f1-f364-4485-b538-6079f69293fd","html_url":"https://github.com/cupcakearmy/svelte-hint","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"db2512d793662ca059a70db76ccbaf89c37132a5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cupcakearmy/svelte-hint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupcakearmy%2Fsvelte-hint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupcakearmy%2Fsvelte-hint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupcakearmy%2Fsvelte-hint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupcakearmy%2Fsvelte-hint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cupcakearmy","download_url":"https://codeload.github.com/cupcakearmy/svelte-hint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupcakearmy%2Fsvelte-hint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28604924,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"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":["library","popperjs","svelte","tooltip"],"created_at":"2024-10-01T13:20:07.478Z","updated_at":"2026-01-20T14:33:24.023Z","avatar_url":"https://github.com/cupcakearmy.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-hint\n\nSvelte library for tooltips internally powered by the awesome [Fluent UI](https://floating-ui.com/) with sensible default values.\n\nCheck out the **[Demo](https://svelte-hint.pages.dev/)** to see it in action.\n\n![Screenshot](.github/screen.png)\n\n![version badge](https://badgen.net/npm/v/svelte-hint)\n![downloads badge](https://badgen.net/npm/dt/svelte-hint)\n![dependency count](https://badgen.net/bundlephobia/dependency-count/svelte-hint)\n![minzip size badge](https://badgen.net/bundlephobia/minzip/svelte-hint)\n![types badge](https://badgen.net/npm/types/svelte-hint)\n\n## 🌈 Features\n\n- Automatic positioning \u0026 overflow handling on screen edges (Fluent UI).\n- Fully typed.\n- Sensible default values.\n- Use text or custom html/components as tooltips.\n\n## 📀 Installation\n\n```bash\nnpm install svelte-hint\n```\n\n## ⌨️ Usage\n\n### With text\n\n```svelte\n\u003cscript lang=\"ts\"\u003e\n  import Hint from 'svelte-hint'\n\u003c/script\u003e\n\n\u003cHint text=\"A tooltip!\"\u003e\n  \u003cbutton class=\"btn btn-success drag\"\u003eHover me!\u003c/button\u003e\n\u003c/Hint\u003e\n```\n\n### With custom html / components\n\n```svelte\n\u003cscript lang=\"ts\"\u003e\n  import Hint from 'svelte-hint'\n\u003c/script\u003e\n\n\u003cHint\u003e\n  \u003cbutton class=\"btn btn-success drag\"\u003eHover me!\u003c/button\u003e\n  \u003ci slot=\"hint\"\u003eSome custom html\u003c/i\u003e\n\u003c/Hint\u003e\n```\n\n## 🗂 Docs\n\n### Props\n\n| Prop        | Type                          | Default               | Description                                                                                                           |\n| ----------- | ----------------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------- |\n| `text`      | `string`                      | `''`                  | Text to be used as the tooltip. If empty the slot will be used.                                                       |\n| `placement` | `Placement`                   | `auto`                | See the [Fluent UI docs](https://floating-ui.com/docs/computePosition#placement).                                     |\n| `boundary`  | `HTMLElement \\| string`       | `'clippingAncestors'` | See the [Fluent UI docs](https://floating-ui.com/docs/detectOverflow#boundary).                                       |\n| `offset`    | `Options`                     | `4`                   | See the [Fluent UI docs](https://floating-ui.com/docs/offset#options).                                                |\n| `auto`      | `boolean \\| 'start' \\| 'end'` | `false`               | Use the [`autoPlacement`](https://floating-ui.com/docs/autoPlacement) middleware. If set `placement` will be ignored. |\n\n### Slots\n\n#### `hint`\n\n\u003e Only works if the `text` props is empty. Otherwise the slot is ignored.\n\nIf you don't want to use the pre-styled tooltip you are free to use whatever html / svelte code you'd like as the tooltip.\n\n```svelte\n\u003cHint\u003e\n  \u003cdiv\u003eHover me\u003c/div\u003e\n  \u003cdiv slot=\"hint\"\u003eSome custom html\u003c/div\u003e\n\u003c/Hint\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcupcakearmy%2Fsvelte-hint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcupcakearmy%2Fsvelte-hint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcupcakearmy%2Fsvelte-hint/lists"}