1.0.6 • Published 6 years ago
react-popup-bulma
Licence
ISC
Version
1.0.6
Deps
0
Size
136 kB
Vulns
0
Weekly
0
React-Popup-Bulma
This is a popup component for React library, using Bulma CSS framework. Please import Bulma before implementing.
1. Import Bulma:
You can import Bulma with the following options
- With npm:
npm install bulma
- With CDN:
- Download from the repository:
2. Usage
import Popup from "react-popup-bulma";
const YourComponent = (props) => {
const payload = {
title: "Delete Item",
content: "Are you sure you want to delete?",
buttonText: "Confirm",
action: delete,
actionParams: 123
}
const delete = (id) => {
// ...
}
return (
<div>
<Popup payload={payload}>
</div>
)
}