swalt

1.0.10 • Public • Published

Swalt Awesome

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.

Swalt Preview

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 -

Social Links

Readme

Keywords

Package Sidebar

Install

npm i swalt

Weekly Downloads

3

Version

1.0.10

License

ISC

Unpacked Size

14.1 kB

Total Files

3

Last publish

Collaborators

  • codeninja02