Alert
A callout for a message that needs attention, with an icon per variant.
Installation
bash
shellui-native add alert
Platforms: MAUI · Avalonia. Also installs icon.
Usage
Variants
Heads up!
You can add components to your app using the CLI.
Session expired
Please sign in again, Shewart.
Saved
Your changes were saved.
Storage almost full
You have used 92% of your quota.
<ui:Alert Title="Heads up!" Message="You can add components to your app using the CLI." />
<ui:Alert Title="Session expired" Message="Please sign in again, Shewart." Variant="Destructive" />
<ui:Alert Title="Saved" Message="Your changes were saved." Variant="Success" />
<ui:Alert Title="Storage almost full" Message="You have used 92% of your quota." Variant="Warning" /><ui:Alert Title="Heads up!" Message="You can add components to your app using the CLI." />
<ui:Alert Title="Session expired" Message="Please sign in again, Shewart." Variant="Destructive" />
<ui:Alert Title="Saved" Message="Your changes were saved." Variant="Success" />
<ui:Alert Title="Storage almost full" Message="You have used 92% of your quota." Variant="Warning" />Not available on yet
API
| Property | Type | Default | Description |
|---|---|---|---|
Title |
string |
— | Heading text. |
Message |
string |
— | Body text. |
Variant |
AlertVariant |
Default |
Visual style. One of Default, Destructive, Success, Warning, Info. |