{"id":19821238,"url":"https://github.com/mattrothenberg/react-overflow-list","last_synced_at":"2025-05-01T12:30:37.144Z","repository":{"id":46806294,"uuid":"408625132","full_name":"mattrothenberg/react-overflow-list","owner":"mattrothenberg","description":"A headless React component that lets you control how visible and overflown items are rendered 👀","archived":false,"fork":false,"pushed_at":"2021-10-16T02:44:08.000Z","size":263,"stargazers_count":28,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T13:22:06.102Z","etag":null,"topics":["list","overflow","react","resize"],"latest_commit_sha":null,"homepage":"https://react-overflow-list.vercel.app/","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/mattrothenberg.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":"2021-09-20T23:03:11.000Z","updated_at":"2024-12-30T07:27:59.000Z","dependencies_parsed_at":"2022-08-25T16:41:45.062Z","dependency_job_id":null,"html_url":"https://github.com/mattrothenberg/react-overflow-list","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrothenberg%2Freact-overflow-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrothenberg%2Freact-overflow-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrothenberg%2Freact-overflow-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrothenberg%2Freact-overflow-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattrothenberg","download_url":"https://codeload.github.com/mattrothenberg/react-overflow-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251874166,"owners_count":21657960,"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":["list","overflow","react","resize"],"created_at":"2024-11-12T10:26:24.758Z","updated_at":"2025-05-01T12:30:36.816Z","avatar_url":"https://github.com/mattrothenberg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-overflow-list\n\nA hooks based implementation of the `OverflowList` component from [Blueprint JS](https://blueprintjs.com/docs/#core/components/overflow-list).\n\n\n![ezgif-3-b0d519eb63c8](https://user-images.githubusercontent.com/5148596/134089559-81de1a38-06cd-4c84-8dd4-0937ca040edc.gif)\n\n\n## Installation\n\n```\nyarn add react-overflow-list\n```\n\n### Basic Usage\n\n```jsx\nimport { OverflowList } from 'react-overflow-list';\n\nconst ItemRenderer = (item, index) =\u003e {\n  return \u003cspan key={index}\u003e{item}\u003c/span\u003e;\n};\n\nconst OverflowRenderer = (items) =\u003e {\n  return \u003cspan\u003e+ {items.length} more\u003c/span\u003e;\n};\n\nexport function App() {\n  const [items] = React.useState(['Apple', 'Banana', 'Orange']);\n\n  return (\n    \u003cOverflowList\n      collapseFrom=\"end\"\n      minVisibleItems={0}\n      items={items}\n      itemRenderer={ItemRenderer}\n      overflowRenderer={OverflowRenderer}\n    /\u003e\n  );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrothenberg%2Freact-overflow-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattrothenberg%2Freact-overflow-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrothenberg%2Freact-overflow-list/lists"}