Error State

Shown in place of content that failed to load, with a retry button.
Stable
Web
iOS
Android
@advui/core
Source

Retry

Installation

pnpm
pnpm add @advui/core
npm
npm install @advui/core

Usage

import { ErrorState } from '@advui/core'

<ErrorState
  description="Check your connection and try again."
  onRetry={refetch}
  retrying={isFetching}
/>

API reference

ErrorState

Empty State with an error icon; also accepts its props.
PropTypeDefaultDescription
titleReactNode'Something went wrong'Short heading.
descriptionReactNode—What failed and what to do.
onRetry() => void—Shows a retry button that calls this.
retryLabelstring'Try again'Retry button text.
retryingbooleanfalseSpinner on the retry button.
childrenReactNode—More actions after Retry.

Accessibility

  • On web it has the alert role, so screen readers announce it when it replaces content.
  • The title is a heading, and the retry button shows a spinner and aria-busy while retrying.

Platform notes

iOS
Not announced automatically; move focus to it or announce with AccessibilityInfo.
Android
Not announced automatically; move focus to it or announce with AccessibilityInfo.
Since v0.4.0Last updated Nov 2, 2026Edit this page on GitHub