react-popup-bulma
v1.0.6
Published
A react popup component using bulma css library.
Readme
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:
https://www.jsdelivr.com/package/npm/bulma
- Download from the repository:
https://github.com/jgthms/bulma/tree/master/css
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>
)
}