Skip to content

enesfurkangenc/react-smoothie-modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 animation escKey extraStyle={'ExtraCss'}>
          <div style={{ marginTop: '50px', textAlign: 'center'}}>Smoothie Modal 🦄🦄</div>
        </SmoothieModal>
      </div>
    );
  }}
}

License

MIT © enesfurkangenc

About

React Smoothie Modal 🦄🦄

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published