1.1.10 • Published 3 years ago

calerts v1.1.10

Weekly downloads
21
License
MIT
Repository
github
Last release
3 years ago

Custom-Alert

Custom-alert is a lightweight alternative for sweetalert.

This library doest not support IE

This library inspire by sweetalert

Checkout the Documentation

Installation

NPM

npm i calerts

Unpkg (9kb)

<script src="https://unpkg.com/calerts"></script>

Unpkg Unbabel Version (8kb)

<script src="https://unpkg.com/calerts@latest/dist/calert.unbabel.min.js"></script>

Usage

calert('Error', 'Something error occured', 'error')

sample

sample 2

calert({
  icon: 'question',
  title: 'Do you have any questions ?',
  confirmButton: 'Yes',
  cancelButton: 'Nothing',
}))

sample

sample 3

calert({
  icon: "warning",
  text: "You must login first",
  inputs: {
    username: {
      type: "text",
      placeholder: "Username"
    },
    password: {
      type: "password",
      placeholder: "Password",
    }
  }
  confirmButton: "Login"
})

sample

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago