Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Alert",
"description": "Displays an alert modal.",
"type": "object",
"examples": [
{
"title": "Show a themed alert",
"description": "Click the button. Alert opens a modal dialog with a theme-tinted header. Themes: Primary (default), Success, Warning, Danger, White. Use for outcomes that need explicit acknowledgement — errors, confirmations, one-time notices.",
"document": {
"PresentationType": "Button",
"Text": "Show alert",
"BorderRadius": 6,
"Color": "#FFFFFF",
"BackgroundColor": "#2F6FED",
"OnClick": {
"Handler": "Alert",
"Theme": "Success",
"Title": "Saved",
"Message": "Your changes were saved.",
"ButtonTitle": "OK"
}
}
}
],
"x-version": "1.0",
"required": [
"Handler",
"Message"
],
"properties": {
"Handler": {
"const": "Alert"
},
"Message": {
"type": "string"
},
"Title": {
"type": "string"
},
"Theme": {
"type": "string"
},
"Duration": {
"type": "number"
},
"Animation": {
"type": "string"
},
"AnimationStyle": {
"type": "string"
},
"AutoDismiss": {
"type": "integer"
},
"AutoClose": {
"type": "integer"
},
"BackgroundColor": {
"type": "string"
},
"ButtonTitle": {
"type": "string"
},
"OnSuccess": {
"$ref": "/schema/Actions/Action/1.0/index.json"
},
"OnFailure": {
"$ref": "/schema/Actions/Action/1.0/index.json"
}
},
"additionalProperties": false,
"x-icon": "<svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 4l9 16H3z\"/><path d=\"M12 10v4M12 17h.01\"/></svg>",
"$id": "/schema/Actions/Alert/1.0/index.json",
"x-family": "Actions",
"x-name": "Alert",
"x-source-package": "zero-schema"
}
Click the button. Alert opens a modal dialog with a theme-tinted header. Themes: Primary (default), Success, Warning, Danger, White. Use for outcomes that need explicit acknowledgement — errors, confirmations, one-time notices.
{
"PresentationType": "Button",
"Text": "Show alert",
"BorderRadius": 6,
"Color": "#FFFFFF",
"BackgroundColor": "#2F6FED",
"OnClick": {
"Handler": "Alert",
"Theme": "Success",
"Title": "Saved",
"Message": "Your changes were saved.",
"ButtonTitle": "OK"
}
}