{"id":24319575,"url":"https://github.com/ryym/react-expander","last_synced_at":"2026-04-20T12:31:58.028Z","repository":{"id":66203971,"uuid":"50664048","full_name":"ryym/react-expander","owner":"ryym","description":"Make a component expandable.","archived":false,"fork":false,"pushed_at":"2017-03-11T01:43:06.000Z","size":269,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T20:44:49.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ryym.github.io/react-expander","language":"JavaScript","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/ryym.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-29T13:29:33.000Z","updated_at":"2017-03-11T01:43:41.000Z","dependencies_parsed_at":"2023-05-29T16:15:15.470Z","dependency_job_id":null,"html_url":"https://github.com/ryym/react-expander","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryym/react-expander","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Freact-expander","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Freact-expander/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Freact-expander/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Freact-expander/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryym","download_url":"https://codeload.github.com/ryym/react-expander/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryym%2Freact-expander/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32047092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-01-17T15:33:49.609Z","updated_at":"2026-04-20T12:31:57.999Z","avatar_url":"https://github.com/ryym.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Expander\n\nMake your component expandable by drag and drop ([demo](https://ryym.github.io/react-expander/)).\n\nSample code:\n\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport {\n  allowExpandingIn,\n  beExpandable\n} from 'react-expander';\n\n// Define an expandable component.\nconst Box = ({ width, height, children }) =\u003e {\n  const style = {\n    width,\n    height,\n    border: '1px solid black',\n    position: 'relative'\n  };\n  return (\n    \u003cdiv style={style}\u003e\n      {children}\n    \u003c/div\u003e\n  );\n};\n\n// Wrap the component by `beExpandable`.\n// This passes width and height to Box when expanded.\nconst ExpandableBox = beExpandable(Box);\n\n// Define a container component.\nconst Container = ({ expander, expandHandlers }) =\u003e {\n  const containerStyle = {\n    width: '100%',\n    height: '200px',\n    border: '2px solid #ccc'\n  };\n\n  // Specify styles for expanding point.\n  const expanderStyle = {\n    border: '1px solid red',\n    width: '10px',\n    height: '10px',\n    position: 'absolute',\n    bottom: 0,\n    right: 0,\n    cursor: 'pointer'\n  };\n\n  return (\n    \u003cdiv {...expandHandlers} style={containerStyle}\u003e\n      \u003cExpandableBox expander={expander({ style: expanderStyle })} /\u003e\n    \u003c/div\u003e\n  );\n};\n\n// Wrap the container by `allowExpandingIn`.\n// Users can expand Box inside of this container.\nconst AllowedContainer = allowExpandingIn(Container);\n\nReactDOM.render(\n  \u003cAllowedContainer /\u003e,\n  document.getElementById('main'),\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryym%2Freact-expander","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryym%2Freact-expander","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryym%2Freact-expander/lists"}