$ rezi
Widgets

ErrorDisplay

Displays an error message with optional stack trace and retry action.

Displays an error message with optional stack trace and retry action.

Usage

ui.errorDisplay("Build failed", {
  title: "Build error",
  stack: state.stack,
  showStack: state.showStack,
  onRetry: () => retryBuild(),
})

Props

PropTypeDefaultDescription
messagestringrequiredError message text
titlestring"Error"Title text
stackstring-Optional stack trace
showStackbooleanfalseWhether to render the stack trace
onRetry() => void-Optional retry action
styleTextStyle-Optional style override

Notes

  • If showStack is true but stack is empty, only the title and message render.

On this page