1.0.6 • Published 4 years ago
react-popup-bulma v1.0.6
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>
)
}