[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Alert

# Function: Alert()

> **Alert**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:1181](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L1181)

An inline, statically-styled alert box. `variant` (default `"info"`) sets the colour
and ARIA role — `error`/`warning` announce assertively as `role="alert"`, others as
`role="status"`.

## Parameters

### props

[`AlertProps`](../interfaces/AlertProps)

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Remarks

`title` renders a bold heading above the body; `dismissible` adds a client-only ×
that hides the alert with no server round-trip.

## Example

```tsx
<Alert variant="success" dismissible>Saved!</Alert>
```
