SusAlert

Inline feedback block — title + body, typed severity, optional close.
Package
SusKit · Atoms (commercial)
Props
| Name | Type | Default | |
|---|---|---|---|
Type | Prop<string> | "info" | v-model |
Text | Prop<string> | "" | v-model |
Title | Prop<string> | "" | v-model |
Icon | Prop<string> | "" | v-model |
Closable | Prop<bool> | false | v-model |
Prominent | Prop<bool> | false | v-model |
Border | Prop<string> | "left" | v-model |
Density | Prop<string> | "default" | v-model |
Variant | Prop<string> | "tonal" | v-model |
Slots
| Name |
|---|
(default) |
Events
| Name | Field | Payload |
|---|---|---|
Close | OnClose | — |
Style hooks
USS class contract — override appearance without touching C#. States toggle via these classes:
sus-alertsus-alert__bodysus-alert__closesus-alert__iconsus-alert__textsus-alert__titlesus-alert--border-bottomsus-alert--border-leftsus-alert--border-rightsus-alert--border-topsus-alert--closablesus-alert--density-comfortablesus-alert--density-compactsus-alert--errorsus-alert--flatsus-alert--infosus-alert--outlinedsus-alert--prominentsus-alert--successsus-alert--textsus-alert--tonalsus-alert--warningunity-labelunity-text-element
Usage
xml
<template>
<sus:SusAlert Type="warning"
Title="Unsaved changes"
Text="Leave this screen and you will lose edits."
Variant="tonal"
Closable="true"
@close="OnDismiss" />
</template>
<script>
void OnDismiss() { /* hide or clear */ }
</script>csharp
var alert = new SusAlert();
alert.Type.Value = "info";
alert.Title.Value = "Sync complete";
alert.Text.Value = "Your loadout is up to date.";
alert.Variant.Value = "tonal";
alert.OnClose += () => { /* … */ };Type
info · success · warning · error
Variant
tonal · outlined · text · flat