https://github.com/avin/react-size-me
React component to determine parent container size
https://github.com/avin/react-size-me
dimension react resizable resize size
Last synced: about 1 year ago
JSON representation
React component to determine parent container size
- Host: GitHub
- URL: https://github.com/avin/react-size-me
- Owner: avin
- Created: 2018-10-24T14:14:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T16:31:56.000Z (over 7 years ago)
- Last Synced: 2024-10-16T09:06:25.116Z (over 1 year ago)
- Topics: dimension, react, resizable, resize, size
- Language: JavaScript
- Homepage: https://avin.github.io/react-size-me
- Size: 1.5 MB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# react-size-me
> React component to determine parent container size
[](https://yarnpkg.com/en/package/@avinlab/react-size-me) [](LICENSE)
## Demo
Here is an [examples page](https://avin.github.io/react-size-me)
## Install
```bash
# Yarn
yarn add @avinlab/react-size-me
# NPM
npm install --save @avinlab/react-size-me
```
## Usage
```js
import React from 'react';
import SizeMe from '@avinlab/react-size-me';
{({ width, height }) => (
)}
```
## License
MIT © [avin](https://github.com/avin)