Documentation
¶
Overview ¶
Package erroroverlay renders an Elm-grade, in-page error overlay as a GoWebComponents component (FB4). It is the visual surface for a development error/diagnostic: a clear title, the message, an optional actionable hint ("here's likely how to fix it"), and an optional stack — rendered as a dismissible modal so a failure is legible in the page instead of only in the console. The structured diagnostics data already lives in the runtime/diagnostics packages; this is the dogfooded view over it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorOverlay ¶
ErrorOverlay renders the error as a dismissible, accessible modal overlay. Restyle via the gwc-error-overlay classes.
Types ¶
type Props ¶
type Props struct {
// Title is the short heading (e.g. "Render error"). Defaults to "Error".
Title string
// Message is the primary error text.
Message string
// Hint is an optional actionable suggestion — the Elm-grade "try this" line.
Hint string
// Stack is optional call-stack / trace frames.
Stack []string
// OnDismiss, when set, wires the close control.
OnDismiss func()
}
Props configures an ErrorOverlay.
Click to show internal directories.
Click to hide internal directories.