{"id":21009009,"url":"https://github.com/avin/react-size-me","last_synced_at":"2025-05-15T02:32:53.827Z","repository":{"id":57099976,"uuid":"154513367","full_name":"avin/react-size-me","owner":"avin","description":"React component to determine parent container size","archived":false,"fork":false,"pushed_at":"2018-10-26T16:31:56.000Z","size":1575,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T09:06:25.116Z","etag":null,"topics":["dimension","react","resizable","resize","size"],"latest_commit_sha":null,"homepage":"https://avin.github.io/react-size-me","language":"JavaScript","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/avin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-10-24T14:14:23.000Z","updated_at":"2024-07-11T00:47:37.000Z","dependencies_parsed_at":"2022-08-22T23:10:40.556Z","dependency_job_id":null,"html_url":"https://github.com/avin/react-size-me","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/avin%2Freact-size-me","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Freact-size-me/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Freact-size-me/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Freact-size-me/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avin","download_url":"https://codeload.github.com/avin/react-size-me/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225324104,"owners_count":17456460,"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":["dimension","react","resizable","resize","size"],"created_at":"2024-11-19T09:15:10.679Z","updated_at":"2024-11-19T09:15:11.197Z","avatar_url":"https://github.com/avin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-size-me\n\n\u003e React component to determine parent container size\n\n[![NPM registry](https://img.shields.io/npm/v/@avinlab/react-size-me.svg?style=for-the-badge)](https://yarnpkg.com/en/package/@avinlab/react-size-me) [![NPM license](https://img.shields.io/badge/license-mit-red.svg?style=for-the-badge)](LICENSE)\n\n## Demo\n\nHere is an [examples page](https://avin.github.io/react-size-me)\n\n## Install\n\n```bash\n# Yarn\nyarn add @avinlab/react-size-me\n\n# NPM\nnpm install --save @avinlab/react-size-me\n```\n\n## Usage\n\n```js\nimport React from 'react';\nimport SizeMe from '@avinlab/react-size-me';\n\n\u003cdiv className=\"container\"\u003e\n    \u003cSizeMe\u003e\n        {({ width, height }) =\u003e (\n            \u003cdiv className=\"inner\" style={{ width, height }}/\u003e                \n        )}\n    \u003c/SizeMe\u003e\n\u003c/div\u003e\n\n```\n\n## License\n\nMIT © [avin](https://github.com/avin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favin%2Freact-size-me","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favin%2Freact-size-me","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favin%2Freact-size-me/lists"}