Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

react-swal

3.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.

Install

npm i react-swal

DownloadsWeekly Downloads

236

Version

3.0.0

License

none

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar