react-maximize

0.16.3 • Public • Published

react-maximize

Composable component maximizer / compressor for React.

Build Status codecov

NPM

Install

npm install -S react-maximize

Usage

import React from 'react'
import reactMaximize from 'react-maximize'
 
/** reactMaximize is a factory that exports the maximize component. */
const Maximize = reactMaximize({ React })
 
export default props => (
  <Maximize
      shouldComponentMaximize={() => true}
      shouldComponentCompress={() => true}
  >
    {maximize => (
      <div>
        <span style={{ float: 'right' }}>
          {maximize.Controls}
        </span>
      </div>
    )}
  </Maximize>
)

Test

See react-maximize's test project at react-maximize-test

In active development, come back in a few days.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.16.33latest

Version History

VersionDownloads (Last 7 Days)Published
0.16.33
0.16.20
0.16.10
0.15.00
0.13.10
0.14.10
0.14.00
0.12.10
0.12.00
0.11.60
0.11.50
0.11.40
0.11.30
0.11.20
0.11.10
0.11.00
0.10.10
0.10.00
0.9.20
0.9.10
0.9.00
0.8.10
0.8.00
0.7.30
0.7.20
0.7.10
0.7.00
0.6.40
0.6.30
0.6.01
0.5.50
0.5.40
0.5.30
0.5.21

Package Sidebar

Install

npm i react-maximize

Weekly Downloads

5

Version

0.16.3

License

MIT

Last publish

Collaborators

  • cchamberlain