How to use the terra-notification-dialog.NotificationDialogVariants.ALERT function in terra-notification-dialog

To help you get started, we’ve selected a few terra-notification-dialog examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerner / terra-framework / packages / terra-notification-dialog / src / terra-dev-site / doc / example / NotificationDialogWithFocus.jsx View on Github external
const handleCloseModal = () => {
    setIsOpen(false);
  };

  const handlePopupButtonClick = () => {
    setIsPopupOpen(true);
  };

  const handlePopupRequestClose = () => {
    setIsPopupOpen(false);
  };

  return (
    <>
      
      <button>
      </button><button></button>
github cerner / terra-framework / packages / terra-notification-dialog / src / terra-dev-site / doc / example / CompleteNotificationDialog.jsx View on Github external
const CompleteNotificationDialog = () =&gt; {
  const [isOpen, setIsOpen] = useState(false);

  const handleOpenModal = () =&gt; {
    setIsOpen(true);
  };

  const handleCloseModal = () =&gt; {
    setIsOpen(false);
  };

  return (
    &lt;&gt;
      
      <button>
    </button>

terra-notification-dialog

`terra-notification-dialog` is a notification dialog component built over the `terra-abstract-modal`. It has the highest z-index of 9001. It is a common component to be used for confirmation/acceptance criteria style dialogs.

Apache-2.0
Latest version published 6 months ago

Package Health Score

54 / 100
Full package analysis