Skip to content

codeninja02/Swalt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.