{"id":25191803,"url":"https://github.com/supertigerdev/solid-virtual-scroll","last_synced_at":"2025-05-07T21:42:21.451Z","repository":{"id":38380948,"uuid":"500081660","full_name":"SupertigerDev/solid-virtual-scroll","owner":"SupertigerDev","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-05T18:44:53.000Z","size":14,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-05-05T21:31:58.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/SupertigerDev.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}},"created_at":"2022-06-05T11:44:36.000Z","updated_at":"2023-05-05T21:31:58.343Z","dependencies_parsed_at":"2022-08-25T05:51:46.057Z","dependency_job_id":null,"html_url":"https://github.com/SupertigerDev/solid-virtual-scroll","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupertigerDev%2Fsolid-virtual-scroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupertigerDev%2Fsolid-virtual-scroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupertigerDev%2Fsolid-virtual-scroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SupertigerDev%2Fsolid-virtual-scroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SupertigerDev","download_url":"https://codeload.github.com/SupertigerDev/solid-virtual-scroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238030269,"owners_count":19404859,"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":[],"created_at":"2025-02-09T22:36:47.847Z","updated_at":"2025-02-09T22:36:48.432Z","avatar_url":"https://github.com/SupertigerDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solid Virtual Scroll\nNote: This library is not production ready yet!\n\n## Usage\n```tsx\nhandle(Item, height)\n```\n\n```tsx\nimport { createSignal } from \"solid-js\";\nimport { VirtualScroll } from \"./VirtualScroll\";\n\nexport default function App() {\n  const [items, setItems] = createSignal\u003cnumber[]\u003e([]);\n\n  for (let i = 0; i \u003c 10000; i++) {\n    setItems([...items(), i])    \n  }\n\n  return (\n    \u003cVirtualScroll each={items()}\u003e\n      {(item, handle) =\u003e {\n        if (item % 4 === 0) handle(() =\u003e \u003cHeader/\u003e, 23);\n        else handle(() =\u003e \u003cItem i={item}/\u003e, 15);\n      }}\n    \u003c/VirtualScroll\u003e\n  );\n};\n\nfunction Item(props: {i: number}) {\n  return \u003cdiv\u003eItem {props.i}\u003c/div\u003e\n}\n\nfunction Header() {\n  return \u003cdiv style={{\"font-size\": \"20px\"}}\u003eHeader\u003c/div\u003e\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupertigerdev%2Fsolid-virtual-scroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupertigerdev%2Fsolid-virtual-scroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupertigerdev%2Fsolid-virtual-scroll/lists"}