# full-height-hoc

> Height 100% HOC

Latest version **0.4.0** (published 2018-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install full-height-hoc
pnpm add full-height-hoc
yarn add full-height-hoc
bun add full-height-hoc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2018-04-08 |
| First published | 2017-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | jackhanford |
| Keywords | react, height 100%, hoc, flexbox, flex height |

## Links

- npm: https://www.npmjs.com/package/full-height-hoc
- Repository: https://github.com/hanford/full-height-hoc
- Issues: https://github.com/hanford/full-height-hoc/issues
- npm.io page: https://npm.io/package/full-height-hoc

## Dependencies (2)

- [global](https://npm.io/package/global.md) ~4.3.2
- [hoist-non-react-statics](https://npm.io/package/hoist-non-react-statics.md) ~2.3.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2018-04-08
- 0.3.1 — 2017-12-31
- 0.3.0 — 2017-12-31

## README

## full-height-hoc

Loop over DOM elements setting/unsetting height to 100% so you can use `flexbox` height

## Install

```
$ npm install full-height-hoc --save
```

## Usage

```js
import React, { Component } from 'react'
import withFullHeight from 'full-height-hoc'

class RandomComp extends Component {
  ...
}

export default withFullHeight(RandomComp)
```

Or with your own list of selectors
```js
import React, { Component } from 'react'
import withFullHeight from 'full-height-hoc'

class RandomComp extends Component {
  ...
}

export default withFullHeight(RandomComp, ['section', 'body', '.content', '#container'])
```


## Demo
[![Edit o9rvqxyn6z](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/o9rvqxyn6z)

MIT © [Jack Hanford](http://jackhanford.com)

---
_Source: https://npm.io/package/full-height-hoc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
