1.0.0 • Published 3 years ago

react-custom-modal-ts v1.0.0

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

react-custom-modal-ts

Made with 🖤 by Felipe Almeida

NPM JavaScript Style Guide

Install

npm install --save react-custom-modal-ts

Usage

import React, { Component } from 'react'

import CustomModal from 'react-custom-modal-ts'

class Example extends Component {
  render() {
    return (
    <>
      <CustomModal
        borderRadius={10}
        setModalOpen={toggleModal}
        modalVisible={modal}
      >
        <h1>CustomModal Example</h1>
      </CustomModal>

      <button onClick={handleOpenModal}>Open Modal</button>
    </>
    )
  }
}

License

MIT © fgalmeida