ErrorApi
ErrorApi provides an attractive fallback state when HTTP queries fail, with custom error messages and retry buttons.
Props & Configuration
4 propsComplete property specifications, parameter types, and default fallbacks.
| Property | Type | Default | Description |
|---|---|---|---|
| title | string | "Oops Something went wrong." | Error headline text. |
| message | string | — | Detailed explanation or error reason. |
| onRetry | () => void | — | Retry callback executed when user clicks the retry button. |
| fullScreen | boolean | false | Expands container to fill 60vh+ viewport height. |
Interactive Examples & Live Previews
1 DemosEvery example includes its own live, interactive preview element alongside the corresponding copyable TypeScript snippet.
Network Error Card with Retry
Error banner shown inside cards when a query fails.

Service Cluster Unavailable
Failed to connect to backend cluster at port 8080. Connection timed out after 5000ms.
1import React from "react";2import { ErrorApi } from "antd-dynamic-ui";34export default function NetworkError() {5 return (6 <ErrorApi7 title="Failed to Load Financial Summary"8 message="The accounting microservice is undergoing routine database maintenance. Please retry in a few moments."9 onRetry={() => alert("Retrying request...")}10 />11 );12}
Frequently Asked Questions & Quick Solutions
Architectural patterns, React 19 compatibility, and integration tips for ErrorApi.
How does ErrorApi integrate with Ant Design 5.x and Next.js 15?▼
ErrorApi is designed as an enhanced, declarative wrapper for Ant Design. It fully supports Next.js 15 App Router when using @ant-design/nextjs-registry, eliminating SSR hydration mismatches and guaranteeing 0ms layout thrashing.
Can I customize validation, themes, and props for ErrorApi?▼
Yes. Every prop is fully typed in TypeScript 5 with comprehensive Intellisense. You can pass custom styling via className or style props, configure global Ant Design themes via ConfigProvider, and extend validation logic seamlessly.