Show an attention-grabbing message.
Alerts can be used to communicate important messages to the user, drawing more attention than a standard paragraph or info layout.
| Property | Type | Required | Description |
|---|---|---|---|
| No | A titled call to action which can be performed by the user.
⚠️ Experimental - This may be changed in the future without notice. | |
context | Context | No | The semantics of the alert. Defaults to neutral. |
control | String | No | Specify a particular control to use to represent the layout. If the control is unknown, it will be ignored. |
margin | Size | No | The vertical margin to apply after this component. Defaults to md. |
markdown | String | Yes | The content of the alert as string. The following subset of markdown features are supported: Emphasis, strong emphasis. |
type | String | Yes | It must be alert. |
The call to action configuration to be used by the Alert.
| Property | Type | Required | Description |
|---|---|---|---|
accessibilityDescription | String | No | A description of the call to action to be used by screen readers. |
behavior | Behavior | Yes | Behavior that should be performed when user interacts with call to action. |
title | String | Yes | A user-facing title. |