sweetalert-react icon indicating copy to clipboard operation
sweetalert-react copied to clipboard

Need to add "question" to types

Open aph-vsn opened this issue 8 years ago • 1 comments

aph-vsn avatar Jul 13 '17 21:07 aph-vsn

is so easy, you can add the type that you want, you see : first, remember import this:

import SweetAlert from 'sweetalert-react'; import 'sweetalert/dist/sweetalert.css'; second step

<SweetAlert type="success" show={this.state.show} title="Demo" text="SweetAlert in React" onConfirm={() => this.setState({ show: false })} />

also, you can use another types differents that success, like : "info", "warning" "danger"

osw4l avatar Jun 16 '18 03:06 osw4l