1.0.8 • Published 1 year ago
basic-custom-popup v1.0.8
Introdutcion
A basic reactjs popup component.
Install
npm i popup-simple
Usage
import { CustomPopup } from "../components/custom_popup/customPopup.jsx";
<CustomPopup
content={<p>Testing</p>}
buttonText={'popup'}
buttonAction={() => { console.log('test') }}
popupbuttonText={'Ok'}
transparent={true} />
Options
content : content to be shown in popup.\ buttonText : String to be shown on button.\ popupbuttonText : String to be shown on popup button.\ transparent : boolean value to set whether to grey out background screen or not.