Alert

An Alert is a variation on the Snackbar component, with additional elements to compliment an increased urgency level. An Alert displays an important, succinct message, and provides an action for user to address (or dismiss the Alert). It requires a user action to be dismissed.

tip

See guidelines on Notifications for help in selecting the correct type of notification.

Alerts are shown one at a time and must be dismissed. You can have both alerts and snackbars at the same time.

Import

import { Alert } from '@wpmedia/arc-ui-alert'

Usage

caution

Avoid importing Alert directly and instead use the provided notification hook: useNotification. This hook contains the behavior described on the "Overview" tab.