GA-MO / react-confirm-alert

react component confirm dialog.
https://ga-mo.github.io/react-confirm-alert/demo/
MIT License
271 stars 105 forks source link

Title is Coming with large font no styles applied just using the module as it is !! #60

Closed amujuruprasad closed 2 years ago

amujuruprasad commented 3 years ago

Capture2

shamsnaamir commented 2 years ago

Hi You can use the custom UI if you are not Ok with the default style.

confirmAlert({
  customUI: ({ onClose }) => {
    return (
      <div className='custom-ui'>
        <h1>Are you sure?</h1>
        <p>You want to delete this file?</p>
        <button onClick={onClose}>No</button>
        <button
          onClick={() => {
            this.handleClickDelete();
            onClose();
          }}
        >
          Yes, Delete it!
        </button>
      </div>
    );
  }
});
amujuruprasad commented 2 years ago

Thanks for the reply