1.0.14 • Published 7 years ago

bisu-react-modal v1.0.14

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

bisu-react-modal

Travis npm package Coveralls

Org usage for react-modal.

Installation

npm install --save bisu-react-modal
then include this scss file to your main scss @import '~bisu-react-modal/lib/style.scss';

Usage

import React, { Component } from 'react'
import Modal from 'bisu-react-modal'

class ShowModal extends Component {

  constructor(props) {
    super(props)
    this.state = {
      showModal: false,
    }
  }

  render() {
    const { showModal } = this.state

    return (
      <div>
        <button type="button" onClick={() => this.setState({ showModal: true })}>Show Modal</button>
        <Modal handleClose={() => this.setState({ showModal: false })} isOpen={showModal}>
          Modal Content
        </Modal>
      </div>
    )
  }
}
1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago