Skip to main content
Renders the centred failure message a surface shows in place of its content.

Parameters

__namedParameters

TapErrorStateProps

Returns

ReactElement

Remarks

Carries role="alert", so the host announces it, and draws the title in --tap-danger. The Retry button appears only with onRetry; wire it to the refetch of every read the surface needs. Pass the failure’s own message as the description — an error from useTapServer carries the text your server sent the owner — and the code of a TapError or TapServerError as code.

Example