1.0.0 • Published 3 years ago
react-custom-modal-ts v1.0.0
react-custom-modal-ts
Made with 🖤 by Felipe Almeida
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
1.0.0
3 years ago