Skip to content

Alert

Alert(props): Element

An Alert calls a user’s attention to important information. It can be used to call out helpful information, warn users, or report an error.

Alert info variant Alert warn variant Alert error variant

Parameters

ParameterTypeDescription
propsAlertProps

Returns

Element

Example

import { Alert } from "@netlify/sdk/ui/react/components";
<Alert type="info">I contain an error.</Alert>
<Alert type="warn">I contain a warning.</Alert>
<Alert type="error">I contain an error.</Alert>