1.0.7 • Published 5 years ago

react-smoothie-modal v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-smoothie-modal

react smoothie modal component 🦄

NPM JavaScript Style Guide

Documentation

Install

npm install --save react-smoothie-modal

Usage

import React, { Component } from "react";

import SmoothieModal from "react-smoothie-modal";

class Example extends Component {
  state = {
    modalShow: false
  }

  closeModal = () => {
    this.setState({ modalShow: false})
  }

  render() {
    return (
      <div style={{ margin: '30px'}}>
        <button onClick={() => this.setState({ modalShow: true})} className="button">Open Modal</button>
        <SmoothieModal isShow={this.state.modalShow} handleClose={() => this.setState({ modalShow: false })} smallModal Backdrop>
          <div style={{ marginTop: '50px', textAlign: 'center'}}>Smoothie Modal 🦄🦄</div>
        </SmoothieModal>
      </div>
    );
  }}
}

License

MIT © enesfurkangenc

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago