{"id":20660636,"url":"https://github.com/gennnji/svelte-actions-resize","last_synced_at":"2026-05-08T14:35:04.242Z","repository":{"id":47890948,"uuid":"245198297","full_name":"Gennnji/svelte-actions-resize","owner":"Gennnji","description":"ResizeObserver action for Svelte 3","archived":false,"fork":false,"pushed_at":"2022-12-05T11:57:09.000Z","size":134,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T00:43:58.056Z","etag":null,"topics":["resizeobserver","svelte","svelte3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gennnji.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}},"created_at":"2020-03-05T15:24:09.000Z","updated_at":"2020-03-10T07:44:13.000Z","dependencies_parsed_at":"2022-09-15T07:20:27.867Z","dependency_job_id":null,"html_url":"https://github.com/Gennnji/svelte-actions-resize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gennnji/svelte-actions-resize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gennnji%2Fsvelte-actions-resize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gennnji%2Fsvelte-actions-resize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gennnji%2Fsvelte-actions-resize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gennnji%2Fsvelte-actions-resize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gennnji","download_url":"https://codeload.github.com/Gennnji/svelte-actions-resize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gennnji%2Fsvelte-actions-resize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266403050,"owners_count":23923403,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["resizeobserver","svelte","svelte3"],"created_at":"2024-11-16T19:05:38.095Z","updated_at":"2026-05-08T14:35:04.169Z","avatar_url":"https://github.com/Gennnji.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-actions-resize\n\nResizeObserver action plugin for [Svelte 3](https://svelte.dev).\nBased on ponyfill @juggle/resize-observer.\n\n## Installation\n\nInstall with npm or yarn:\n```bash\nnpm install svelte-actions-resize\n```\nOR\n```bash\nyarn add svelte-actions-resize\n```\n\n## Usage\n\n[DEMO](https://svelte.dev/repl/1a489d85e1fd4609ad86fc51d3b81d69?version=3)\n\n```html\n\u003cstyle\u003e\n  section {\n    border: 10px solid lightgray;\n  }\n\n  section \u003e div {\n    border: 2px solid red;\n    width: 8px;\n    height: 8px;\n    background-color: green;\n  }\n\u003c/style\u003e\n\n\u003cscript\u003e\n  import resize from 'svelte-actions-resize';\n\n  let elements = [{}];\n\n  function handleResize() {\n    alert('Resize done!');\n  }\n\u003c/script\u003e\n\n\u003cbutton on:click={() =\u003e elements = [...elements, {}]}\u003eResize\u003c/button\u003e\n\u003csection use:resize on:resize={handleResize}\u003e\n  {#each elements as element}\n    \u003cdiv\u003e\u003c/div\u003e\n  {/each}\n\u003c/section\u003e\n\n```\n\n## Options\n\n| Name | Type | Description |\n| --- | --- | --- |\n| `on:resize` | `Function` | Callback to handle resize |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgennnji%2Fsvelte-actions-resize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgennnji%2Fsvelte-actions-resize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgennnji%2Fsvelte-actions-resize/lists"}