react-maximize
React control to maximize / compress components.
Last updated 4 years ago by cchamberlain .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-maximize 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.16.3                                ...           latest (4 years ago)

34 Versions

  • 0.16.3                                ...           4 years ago
  • 0.16.2                                ...           4 years ago
  • 0.16.1                                ...           4 years ago
  • 0.15.0                                ...           4 years ago
  • 0.13.1                                ...           4 years ago
  • 0.14.1                                ...           4 years ago
  • 0.14.0                                ...           4 years ago
  • 0.12.1                                ...           4 years ago
  • 0.12.0                                ...           4 years ago
  • 0.11.6                                ...           4 years ago
  • 0.11.5                                ...           4 years ago
  • 0.11.4                                ...           4 years ago
  • 0.11.3                                ...           4 years ago
  • 0.11.2                                ...           4 years ago
  • 0.11.1                                ...           4 years ago
  • 0.11.0                                ...           4 years ago
  • 0.10.1                                ...           4 years ago
  • 0.10.0                                ...           4 years ago
  • 0.9.2                                ...           4 years ago
  • 0.9.1                                ...           4 years ago
  • 0.9.0                                ...           4 years ago
  • 0.8.1                                ...           4 years ago
  • 0.8.0                                ...           4 years ago
  • 0.7.3                                ...           4 years ago
  • 0.7.2                                ...           4 years ago
  • 0.7.1                                ...           4 years ago
  • 0.7.0                                ...           4 years ago
  • 0.6.4                                ...           4 years ago
  • 0.6.3                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.5                                ...           4 years ago
  • 0.5.4                                ...           4 years ago
  • 0.5.3                                ...           4 years ago
  • 0.5.2                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)

Copyright 2014 - 2016 © taobao.org |