{"id":16231563,"url":"https://github.com/hustcc/rc-size-sensor","last_synced_at":"2025-03-19T14:30:43.440Z","repository":{"id":65482645,"uuid":"186368233","full_name":"hustcc/rc-size-sensor","owner":"hustcc","description":"React component wrapper for DOM element size sensor.","archived":false,"fork":false,"pushed_at":"2019-12-07T04:06:59.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T07:51:26.523Z","etag":null,"topics":["react-component","size-sensor"],"latest_commit_sha":null,"homepage":"https://git.hust.cc/size-sensor/","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/hustcc.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":"2019-05-13T07:32:13.000Z","updated_at":"2020-10-28T17:48:22.000Z","dependencies_parsed_at":"2023-01-25T10:45:30.988Z","dependency_job_id":null,"html_url":"https://github.com/hustcc/rc-size-sensor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Frc-size-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Frc-size-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Frc-size-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hustcc%2Frc-size-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hustcc","download_url":"https://codeload.github.com/hustcc/rc-size-sensor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244444444,"owners_count":20453726,"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-component","size-sensor"],"created_at":"2024-10-10T13:06:06.690Z","updated_at":"2025-03-19T14:30:40.955Z","avatar_url":"https://github.com/hustcc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rc-size-sensor\n\n\u003e React component for [size-sensor](https://github.com/hustcc/size-sensor).\n\n\n[![Build Status](https://github.com/hustcc/rc-size-sensor/workflows/build/badge.svg)](https://github.com/hustcc/rc-size-sensor/actions)\n[![npm](https://img.shields.io/npm/v/rc-size-sensor.svg)](https://www.npmjs.com/package/rc-size-sensor)\n[![npm](https://img.shields.io/npm/dm/rc-size-sensor.svg)](https://www.npmjs.com/package/rc-size-sensor)\n\n\n## Install\n\n```bash\n$ npm i --save rc-size-sensor\n```\n\n\n## Usage\n\n\n```jsx\nimport SizeSensor from 'rc-size-sensor';\n\n  // ...\n\n  onResize = (element) =\u003e {\n    // do something\n  }\n\n  render() {\n    return (\n      \u003cSizeSensor onResize={this.onResize}\u003e\n        \u003cYourComponent /\u003e\n      \u003c/SizeSensor\u003e\n    );\n  }\n```\n\n\n## License\n\nMIT@[hustcc](https://github.com/hustcc).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhustcc%2Frc-size-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhustcc%2Frc-size-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhustcc%2Frc-size-sensor/lists"}