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.
Parameters
Parameter | Type | Description |
---|---|---|
props | AlertProps |
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>