react-swal

4.0.0 • Public • Published

react-swal

A React wrapper for SweetAlert

Installation

npm install --save react-swal

Usage

const SweetAlert = require('react-swal');

<SweetAlert isOpen={true}
            type="warning"
            confirmButtonText="Yup"
            cancelButtonText="Nope"
            callback={this.callback} />

Properties

react-swal supports all configuration properties supported by SweetAlert. For more info, see the "Configuration" section of the SweetAlert docs.

License

MIT License.

Readme

Keywords

Package Sidebar

Install

npm i react-swal

Weekly Downloads

208

Version

4.0.0

License

none

Unpacked Size

7.19 kB

Total Files

4

Last publish

Collaborators

  • dheerajds