1.0.8 • Published 8 years ago

react-height-matching-group v1.0.8

Weekly downloads
131
License
MIT
Repository
github
Last release
8 years ago

Usage

Wrap elements with HeightMatchingGroup and provide a selector (used by querySelectorAll internally). HeightMatchingGroup will automatically match the height of all matching descendants to the descendant with the largest scrollHeight.

import HeightMatchingGroup from 'react-height-matching-group'

/* inside render function */
<HeightMatchingGroup tagName="div" className="row" selector=".match-height">
  <div className="col-md-4">
    <div className="match-height">
      //content
    </div>
  </div>
  <div className="col-md-4">
    <div className="match-height">
      //content
    </div>
  </div>
  <div className="col-md-4">
    <div className="match-height">
      //content
    </div>
  </div>
</HeightMatchingGroup>

Accepted properties

  • tagName - the type of element used to wrap the children. Default: span
  • selector - the selector string used in conjunction with querySelectorAll to select the descendants that will be height-matched. Default: .match-height
  • className - the className string to pass to the container.
1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago