basic-custom-popup
v1.0.8
Published
A simple popup component, which shows a popup on a button click. button text, popup contents & popup button text all are from user inputs.
Downloads
9
Maintainers
Readme
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.