0.16.3 • Published 7 years ago

react-bar v0.16.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-bar

Composable component maximizer / compressor for React.

Build Status codecov

NPM

Install

npm install -S react-bar

Usage

import React from 'react'
import reactBar from 'react-bar'

/** reactBar is a factory that exports the maximize component. */
const Maximize = reactBar({ React })

export default props => (
  <Maximize
      shouldComponentMaximize={() => true}
      shouldComponentCompress={() => true}
  >
    {maximize => (
      <div>
        <span style={{ float: 'right' }}>
          {maximize.Controls}
        </span>
      </div>
    )}
  </Maximize>
)

Test

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

In active development, come back in a few days.

0.16.3

7 years ago

0.16.1

8 years ago

0.15.0

8 years ago

0.13.1

8 years ago

0.14.1

8 years ago

0.14.0

8 years ago

0.12.1

8 years ago

0.12.0

8 years ago

0.11.6

8 years ago

0.11.5

8 years ago

0.11.4

8 years ago

0.11.3

8 years ago

0.11.2

8 years ago

0.11.1

8 years ago

0.11.0

8 years ago

0.10.1

8 years ago

0.10.0

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.8.1

8 years ago

0.8.0

8 years ago

0.7.3

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.4

8 years ago

0.6.3

8 years ago

0.6.0

8 years ago

0.5.5

8 years ago