Callout
A highlighted note on a faint tint of its variant colour.
Installation
bash
shellui-native add callout
Platforms: MAUI · Avalonia. Also installs icon.
Usage
Variants
Good to know
Components are copied into your project, so you own the code.
Pro tip
Run shellui-native list to see every component for your platform.
Heads up
Re-running add with --force overwrites your local edits.
Danger
Deleting a workspace removes every project in it.
<ui:Callout Title="Good to know" Text="Components are copied into your project, so you own the code." />
<ui:Callout Variant="Tip" Title="Pro tip" Text="Run shellui-native list to see every component for your platform." />
<ui:Callout Variant="Warning" Title="Heads up" Text="Re-running add with --force overwrites your local edits." />
<ui:Callout Variant="Danger" Title="Danger" Text="Deleting a workspace removes every project in it." /><ui:Callout Title="Good to know" Text="Components are copied into your project, so you own the code." />
<ui:Callout Variant="Tip" Title="Pro tip" Text="Run shellui-native list to see every component for your platform." />
<ui:Callout Variant="Warning" Title="Heads up" Text="Re-running add with --force overwrites your local edits." />
<ui:Callout Variant="Danger" Title="Danger" Text="Deleting a workspace removes every project in it." />Not available on yet
Custom content
Anything inside the tag goes under the text: a button, a link, a list.
xml
<ui:Callout Variant="Danger" Title="Danger">
<ui:Button Text="Review projects" Variant="Outline" Size="Sm" />
</ui:Callout>
API
XAML children go to Body.
| Property | Type | Default | Description |
|---|---|---|---|
Variant |
CalloutVariant |
Info |
Visual style. One of Info, Warning, Danger, Tip, Default. |
Title |
string |
— | Heading text. |
Text |
string |
— | Text shown by the component. |
Icon |
IconName |
None |
Icon to use instead of the variant's own; None keeps the variant's. |
Body |
View (MAUI) · Control? (Avalonia) |
null |
Content under the text. |