Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 1 day 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T16:31:56.000Z (about 6 years ago)
- Last Synced: 2024-10-16T09:06:25.116Z (about 1 month 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
[![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)
## 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)