Table of Contents
1185 words
6 minutes
Ant Design X 2.7 Released: RICH Paradigm and Hybrid UI Reshape AI Interface Development

1. What Is Ant Design X?#

Ant Design X (@ant-design/x) is a React component library for AI-driven interfaces launched by the Ant Design team. It is not a replacement for Ant Design 5, but rather a new component system built on top of the existing design system, specifically designed for scenarios such as AI chat, intelligent assistants, and Agent consoles.

On April 30, 2026, Ant Design X released version v2.7.0, and its ecosystem now encompasses 5 core packages:

Package NamePurposeLatest Version
@ant-design/xCore AI interface component library2.7.0
@ant-design/x-markdownStreaming Markdown renderer2.7.0
@ant-design/x-sdkAI data stream management SDK2.7.0
@ant-design/x-cardA2UI dynamic card rendering2.7.0
@ant-design/x-skillAI coding assistant skill library2.7.0

2. Design Philosophy: The RICH Interaction Paradigm#

The core design philosophy of Ant Design X is the RICH paradigm, which breaks down AI interaction into four stages:

RICH interaction flow
β”œβ”€β”€ R β€” Role (role intent)
β”‚ β”œβ”€β”€ Welcome welcome component
β”‚ └── Prompts prompt set
β”œβ”€β”€ I β€” Intention (intent awakening)
β”‚ β”œβ”€β”€ Sender input box
β”‚ β”œβ”€β”€ Attachment attachment
β”‚ └── Suggestion quick suggestion
β”œβ”€β”€ C β€” Conversation (conversation communication)
β”‚ β”œβ”€β”€ Bubble conversation bubble
β”‚ β”œβ”€β”€ Conversations conversation list
β”‚ └── Notification notification
└── H β€” Hybrid UI (hybrid interface)
β”œβ”€β”€ Think thinking process
β”œβ”€β”€ ThoughtChain thought chain
β”œβ”€β”€ Actions action bar
β”œβ”€β”€ FileCard file card
β”œβ”€β”€ Sources cited sources
β”œβ”€β”€ Mermaid diagram rendering
β”œβ”€β”€ Folder file tree
└── CodeHighlighter code highlighting

RICH is not a linear process, but rather composable interaction units. You can use components from a single stage independently, or combine them into a complete AI application.


3. Hybrid UI: Merging GUI with Natural Language#

The Hybrid UI (HUI) concept proposed by Ant Design X attempts to resolve a core contradiction: traditional GUI operations are efficient but have a high learning curve, while natural language interaction is flexible but expresses intent ambiguously.

HUI divides interaction modes into three types:

ModeCharacteristicsUse Cases
Do-heavyGUI-dominant, AI-assistedStructured forms, data entry
Chat-heavyNatural language-dominantOpen-ended Q&A, content generation
HUI HybridFree switching between GUI + ChatIntelligent customer service, Agent consoles

This design allows the same interface to perform precise operations through traditional forms while also expressing flexibly through natural language β€” β€œhaving your cake and eating it too.”


4. Core Components at a Glance#

4.1 Bubble β€” Conversation Bubble#

Bubble is the foundational component for displaying conversation content, supporting multiple roles and content types:

import { Bubble } from '@ant-design/x';
<Bubble
placement="start"
avatar={{ icon: <RobotOutlined /> }}
content="Hello, I'm an AI assistant"
/>

4.2 Sender β€” Input Box#

Sender is an enhanced input component that supports file attachments, voice input, and quick suggestions:

import { Sender } from '@ant-design/x';
<Sender
onSubmit={(value) => console.log(value)}
placeholder="Type your question..."
/>

4.3 ThoughtChain β€” Chain of Thought#

Displays the thinking process of an AI Agent, allowing users to understand the AI’s reasoning path:

import { ThoughtChain } from '@ant-design/x';
<ThoughtChain
items={[
{ title: 'Analyze the question', description: 'Identify keywords...', status: 'success' },
{ title: 'Search the knowledge base', description: 'Matched 3 related documents', status: 'success' },
{ title: 'Generate answer', status: 'pending' },
]}
/>

4.4 Sources β€” Cited Sources#

Displays the reference sources for AI responses, enhancing credibility:

import { Sources } from '@ant-design/x';
<Sources
items={[
{ title: 'React official documentation', url: 'https://react.dev' },
{ title: 'Ant Design X documentation', url: 'https://x.ant.design' },
]}
/>

5. XMarkdown: Streaming Markdown Rendering#

@ant-design/x-markdown is a Markdown rendering engine optimized specifically for AI streaming output. It solves three core problems that traditional Markdown renderers face in streaming scenarios:

5.1 Incomplete Syntax Fault Tolerance#

When AI streams output $$E = mc^ (unclosed formula), XMarkdown does not crash, but instead gracefully degrades the rendering:

import { XMarkdown } from '@ant-design/x-markdown';
<XMarkdown
content={streamingText}
streaming={{ tail: 'β–‹' }} //Streaming cursor indicator
/>

5.2 Custom Streaming Tail Indicator#

The streaming.tail configuration added in v2.6.0 supports a custom blinking cursor:

<XMarkdown
content={streamingText}
streaming={{
tail: 'β–‹',
tailComponent: <BlinkingCursor />
}}
/>

5.3 Safe Rendering#

The escapeRawHtml property added in v2.3.0 prevents XSS attacks:

<XMarkdown
content={untrustedContent}
escapeRawHtml={true}
/>

6. X SDK: AI Data Stream Management#

@ant-design/x-sdk encapsulates the complete data flow for interacting with AI models:

6.1 XRequest β€” Request Management#

import { XRequest } from '@ant-design/x-sdk';
const request = XRequest({
baseURL: 'https://api.openai.com/v1',
model: 'gpt-4o',
apiKey: process.env.OPENAI_API_KEY,
});

v2.2.0 supports reconnection and custom stream delimiters:

XRequest({
baseURL: 'https://api.example.com',
model: 'custom-model',
streamSeparator: '\n', //Stream delimiter
partSeparator: 'data: ', //Part delimiter
kvSeparator: ': ', //Key-value delimiter
});

6.2 useXChat β€” Conversation Management#

import { useXChat } from '@ant-design/x-sdk';
const { messages, onRequest } = useXChat({
request,
queueRequest: true, //New in v2.3.0: request queue support
});

7. X Card: A2UI Dynamic Cards#

The @ant-design/x-card released in v2.5.0 is the most eye-catching new member of the entire ecosystem. It is based on the A2UI protocol, allowing AI Agents to dynamically generate structured UI:

import { XCard } from '@ant-design/x-card';
<XCard
//A2UI JSON description returned by AI
a2ui={agentResponse}
dataModel={userData}
/>

The core value of A2UI lies in this: AI doesn’t just return text β€” it returns interactive cards. For example, AI can return a complete interactive interface containing forms, charts, and buttons, rather than just a text description.


8. Quick Start#

8.1 Installation#

Terminal window
#Core component library
npm install @ant-design/x
#Streaming Markdown (optional)
npm install @ant-design/x-markdown
#AI SDK (optional)
npm install @ant-design/x-sdk

8.2 A Complete AI Chat Application#

import {
Bubble,
Conversations,
Sender,
XProvider,
} from '@ant-design/x';
import { XMarkdown } from '@ant-design/x-markdown';
import { useXChat, XRequest } from '@ant-design/x-sdk';
export default function ChatApp() {
const request = XRequest({
baseURL: 'https://api.openai.com/v1',
model: 'gpt-4o',
apiKey: process.env.NEXT_PUBLIC_OPENAI_API_KEY,
});
const { messages, onRequest } = useXChat({ request });
return (
<XProvider>
<div style={{ height: '100vh', display: 'flex', flexDirection: 'column' }}>
<Conversations
items={messages.map((msg) => ({
key: msg.id,
label: msg.content.slice(0, 30),
}))}
/>
<div style={{ flex: 1, overflow: 'auto', padding: 16 }}>
{messages.map((msg) => (
<Bubble
key={msg.id}
placement={msg.role === 'user' ? 'end' : 'start'}
content={<XMarkdown content={msg.content} />}
/>
))}
</div>
<Sender onSubmit={onRequest} />
</div>
</XProvider>
);
}

In under 40 lines of code, a complete chat application with streaming Markdown rendering, session management, and AI conversation is implemented.


9. 2026 Version Evolution#

Ant Design X maintained a monthly minor version release cadence in 2026:

VersionDateKey Updates
v2.7.0April 30XProvider zeroRuntime, XCard path reference resolution
v2.6.0April 17XMarkdown tail indicator component, x-components/x-card skill
v2.5.0March 31πŸ”₯ X Card dynamic card module released
v2.4.0March 13πŸ”₯ Folder file tree component, x-markdown skill
v2.3.0February 26useXChat queueRequest, XMarkdown escapeRawHtml
v2.2.0JanuaryMermaid configuration, XRequest reconnection, XMarkdown performance testing

As can be seen, the team continues to explore the boundaries of AI interface as codeβ€”from streaming Markdown to dynamic card rendering, every step is lowering the barrier to AI application development.


10. Comparison with Competitors#

DimensionAnt Design XVercel AI SDKLangChain
PositioningUI component library + data flowData flow + lightweight UIAI orchestration framework
UI systemβœ… Complete component library⚠️ Basic components❌ None
Streaming Markdownβœ… XMarkdown⚠️ Basic support❌ None
Hybrid UIβœ… Hybrid UI❌❌
Framework bindingReact-exclusiveReact/Vue/SvelteCross-platform

Ant Design X’s differentiated advantage lies in its complete UI component system + streaming rendering engine, not just data flow management.


11. Summary#

Ant Design X’s positioning is very clear: it is not yet another AI SDK, but a complete AI interface solution. Its core value lies in:

  1. The RICH paradigm provides a standardized design language for AI interaction
  2. Hybrid UI breaks down the boundary between GUI and Chat
  3. XMarkdown solves the core pain points of streaming rendering
  4. X Card opens up the possibility of AI dynamically generating UI
  5. Out-of-the-box: seamless integration with the Ant Design ecosystem, zero learning curve for React developers

If you are developing an AI chat product, Agent console, or intelligent assistant interface, Ant Design X is currently the most mature and complete choice in the React ecosystem.


References#

Ant Design X 2.7 Released: RICH Paradigm and Hybrid UI Reshape AI Interface Development
https://www.hehonglei.com/posts/ant-design-x-introduction/
Author
HHLBlog
Published at
2026-05-21
License
CC BY-NC-SA 4.0