ErrorBanner UI component
Purpose
ErrorBanner is a data display component. Recoverable error alert. Use for current-page retryable failures.
Inputs
| Field | Required | Type | Behavior |
|---|---|---|---|
message |
yes | string | Visible error. |
dismiss |
no | callback | Optional callback invoked by the close control. The parent clears the error state after the handler succeeds; omitted keeps the banner visible until parent state changes. |
Boundary
Error text is escaped.
Example
package notesui
var uploadError = (
<ErrorBanner
message="Upload failed"
dismiss={clearCurrentError}
></ErrorBanner>
)
Runtime Terms
Callback props documents function callback props.