react-simplert
ReactJS Simple Alert Component (SweetAlert Inspired)
Demo
https://mazipan.github.io/react-simplert/
Download
npm install react-simplert
OR
yarn add react-simplert
How to Use
Import to your component :
Create some template in render()
:
<Simplert showSimplert= thisstateshowAlert type= thisstatetypeAlert title= thisstatetitleAlert message= thisstatemessageAlert />
Just set the props with your custom state.
Available Props
showSimplert: PropTypesboolisRequired title: PropTypesstring message: PropTypesany type: PropTypesstring customClass: PropTypesstring customIconUrl: PropTypesstring onOpen: PropTypesfunc customCloseBtnText: PropTypesstring customCloseBtnClass: PropTypesstring onClose: PropTypesfunc useConfirmBtn: PropTypesbool customConfirmBtnText: PropTypesstring customConfirmBtnClass: PropTypesstring onConfirm: PropTypesfunc disableOverlayClick: PropTypesbool hideAllButton: PropTypesbool
Hope will usefull for you all.
Contact Me :