orsifrancesco /
react-mini-alert-confirm
Simple and easy configurable alert/confirm dialog box for React.
Loading repository data…
orsifrancesco / repository
Simple and easy configurable "sexy" alert/confirm dialog box for Javascript.
Simple and easy configurable alert/confirm dialog box for Javascript.

$ npm i mini-alert-confirm
add the following code on your index.js
import miniAlertConfirm from 'mini-alert-confirm';
// import 'mini-alert-confirm/index.css'; // (optional css, if you want to customize the dialog box)
alert = function (text) { miniAlertConfirm(text); }
confirm = function (text, callback) { miniAlertConfirm(text, callback); }
after importing the library you can just call alert and confirm where/when you want
alert("I'm a beautiful alert popup!!");
confirm("Do you like this popup?", () => {
console.log("I'm a callback if you press OK button");
})
Just a example project where you can see mini-alert-confirm in action..
Licensed under MIT
Selected from shared topics, language and repository description—not editorial ratings.
orsifrancesco /
Simple and easy configurable alert/confirm dialog box for React.
Aditya1727neutron /
This project is a simple interactive JavaScript Quiz Application designed to demonstrate the fundamentals of JavaScript programming and user interaction in a web browser. The quiz runs entirely using JavaScript and uses built-in browser dialog boxes (prompt and alert) to interact with the user, making it easy to understand for beginners.