{"id":21977377,"url":"https://github.com/zmitry/react-collaps","last_synced_at":"2026-04-20T05:04:58.872Z","repository":{"id":53589525,"uuid":"322681994","full_name":"zmitry/react-collaps","owner":"zmitry","description":"1KB React component for collapsing content with animation. Useful for building accordions","archived":false,"fork":false,"pushed_at":"2021-03-22T20:19:33.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T06:36:30.995Z","etag":null,"topics":["react"],"latest_commit_sha":null,"homepage":"https://react-collaps.vercel.app","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/zmitry.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":"2020-12-18T19:04:30.000Z","updated_at":"2021-03-22T20:19:40.000Z","dependencies_parsed_at":"2022-09-10T08:50:24.981Z","dependency_job_id":null,"html_url":"https://github.com/zmitry/react-collaps","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Freact-collaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Freact-collaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Freact-collaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitry%2Freact-collaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmitry","download_url":"https://codeload.github.com/zmitry/react-collaps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955668,"owners_count":20374371,"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":["react"],"created_at":"2024-11-29T16:14:27.895Z","updated_at":"2026-04-20T05:04:58.838Z","avatar_url":"https://github.com/zmitry.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## React-collaps\n\nReact component for collapsing and expanding state.\nUseable for developing component like accordions and similar stuff.\n\n[demo preview](https://react-collaps.vercel.app/)\n\n## How to use\n\n```jsx\nfunction Section({ children, title, id }) {\n  const [state, setState] = useState(false);\n  return (\n    \u003cdiv\u003e\n      \u003cbutton\n        onClick={(e) =\u003e {\n          setState((v) =\u003e !v);\n        }}\n      \u003e\n        \u003ch4\u003e{title}\u003c/h4\u003e\n      \u003c/button\u003e\n      \u003cCollapse in={state}\u003e\n        \u003cdiv\u003e{children}\u003c/div\u003e\n      \u003c/Collapse\u003e\n    \u003c/div\u003e\n  );\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmitry%2Freact-collaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmitry%2Freact-collaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmitry%2Freact-collaps/lists"}