bsr-modaldialog
v2.3.7
Published
react async dialog
Downloads
1
Maintainers
Readme
bsr-modaldialog
Install
npm install --save bsr-modaldialog
Usage
import React from "react";
import {ShowBsrDialog} from "bsr-modaldialog";
import 'bsr-modaldialog/dist/index.css'
export default function P4_1(){
return (
<div style={{display:"flex"}}>
<button onClick={()=>{
ShowBsrDialog({
header:"header",
body:"body",
buttons:[(<button data-mode={-1} data-focus={1}>close</button>)]
}).then(a=>{
alert(JSON.stringify(a))
})
}}>Simple modal dialog</button>
</div>
)
}
License
MIT © ionson100