Skip to content

Latest commit

 

History

History
114 lines (96 loc) · 2.18 KB

README.md

File metadata and controls

114 lines (96 loc) · 2.18 KB

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.