GithubHelp home page GithubHelp logo

codeninja02 / swalt Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 4.0 91 KB

Show amazing sweet alerts in few lines of code.

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

License: MIT License

JavaScript 100.00%
sweetalert swal swalt javascript alert

swalt's Introduction

Turbo Browser svg icon

Swalt

An amazing replacement for Javascript's default alerts

Turbo Browser website


An alternate Javascript library to show awesome alerts on your app It can be used either by CDN or by NPM. CDNs are available in raw as well as minified version.

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
});

๐Ÿ‘ Contribution

See CONTRIBUTING.md to learn about contribution for swalt.

๐Ÿ’ป Author

๐Ÿ”— Links

๐Ÿ“„ License

This project is licensed under the MIT License, see the LICENSE.md file for details.

swalt's People

Contributors

codeninja02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

swalt's Issues

Alert Callback when the user clicks the close button.

I have a bug that when i call a function when the alert is closed for two different alerts separately it calls both the function then.
(The second alert is the child of the callback function of first alert)

Suggestion :- You can return a promise so that rest things can be written inside .then()

(If you want to check my code the i have commented it in your solo learn documentation.)

Is this like sweetalert2.js?

Hello codeninja

Is this like sweetalet2.js?

Have you ever thought about description document and donation, About page?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.