Skip to content

Component-wrapper to determine and report children elements height

License

Notifications You must be signed in to change notification settings

nkbt/react-height

Repository files navigation

react-height npm

CircleCI Dependencies Dev Dependencies

Component-wrapper to determine and report children elements height

React Height

Goals

  • react-height keeps things simple, therefore it does not support nested height change, it only checks immediate children change
  • not based on specific browser APIs, so can be used in other environments too

Live design system demo

https://www.jinno.io/app/21/

Simple web demo

https://nkbt.github.io/react-height

Codepen demo

https://codepen.io/nkbt/pen/NGzgGb

Installation

NPM

npm install --save react-height

yarn

yarn add react-height

1998 Script Tag:

<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-height/build/react-height.js"></