react-bootstrap#ToastContainer JavaScript Examples

The following examples show how to use react-bootstrap#ToastContainer. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: videostreamer.js    From RC4Community with Apache License 2.0 6 votes vote down vote up
Alert = ({ handleToast, show }) => {
  return (
    <ToastContainer
      position="bottom-start"
      style={{ zIndex: "10" }}
      className="p-3"
    >
      <Toast
        show={show}
        onClose={handleToast}
        delay={60000}
        autohide
        bg="warning"
      >
        <Toast.Header>
          <strong className="me-auto">Stream Alert!</strong>
        </Toast.Header>
        <Toast.Body>
          Thank you for watching! Looks like the streaming has stopped! Please
          stay tune and refresh the page if this alert does not shows up!
        </Toast.Body>
      </Toast>
    </ToastContainer>
  );
}