You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have a chance to implement showInputError as declarative api, but you can call it directly:
importswalfrom'sweetalert';<SweetAlertshow={this.state.show}title="An input!"text="Write something interesting:"type="input"showCancelButtoncloseOnConfirm={false}animation="slide-from-top"inputPlaceholder="Write something"onConfirm={inputValue=>{if(inputValue===''){swal.showInputError('You need to write something!');return;}this.setState({show: false});}}/>
Is there any way to use showInputError
Like this example
The text was updated successfully, but these errors were encountered: