atoms19 / swalt

Show amazing sweet alerts in just a single line of code.

Home Page:https://swalt.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Show amazing sweet alerts in just a single line of code.

https://swalt.netlify.app

License:MIT License


Languages

Language:JavaScript 100.0%