npm

Need private packages and team management tools?Check out npm Orgs. »

react-pulldown

0.1.0 • Public • Published

Build Status

React Pulldown

A Pulldown component for React.js

Installation

$ npm install react-pulldown --save

Demo

https://react-pulldown.herokuapp.com/

Usage

See the API section for details.

import React from 'react';
import ReactDOM from 'react-dom';
import {PulldownClose, PulldownGoto, PulldownStage, Pulldown} from 'react-pulldown';
 
const App = React.createClass({
 
  render() {
    return (
      <Pulldown
        className="demo"
        defaultStage="a"
        delay={1000}
      >
 
        <PulldownStage
          height={100}
          name="a"
        >
          First stage
          <PulldownGoto
            stage="b"
          >
            Next
          </PulldownGoto>
        </PulldownStage>
 
        <PulldownStage
          direction="top"
          height={200}
          name="b"
        >
          Second stage
          <PulldownClose>
            Close
          </PulldownClose>
        </PulldownStage>
 
      </Pulldown>
    );
  },
 
});
 
ReactDOM.render(<App />, document.getElementById('app'));

Test

$ npm test

install

npm i react-pulldown

Downloadsweekly downloads

3

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability