swalt
v1.0.10
Published
Show awesome alerts in your web app just by a single line
Downloads
4
Readme
Swalt
An amazing replacement for Javascript's default alerts
By using this very lightweight library, you can show the custom alerts in a single line of code.
Table of Contents
Installation
$ npm install swalt
Usage
import swalt from 'swalt';
swalt("Hello world!");
Templates
Normal Swalt
swalt("Hello world!");
Dark Mode Swalt
swalt("Hello World", {
mode: "dark"
});
Swalt with Icon
swalt("Hello World", {
showIcon: true
});
Swalt with Custom Title
swalt("Hello World", {
title: "My Title"
});
Swalt with Input
swalt("Hello World", {
input: true
});
Get more templates at -