chentsulin/sweetalert-react

Need to add "question" to types

Opened this issue · 1 comments

Need to add "question" to types
osw4l commented

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"