Library / SDK
ant-design/x avatar
ant-design/x

Ant Design X: React components for building AI chat and copilot interfaces

Craft AI-driven interface effortlessly🤖

4,779 stars1,158 forksTypeScriptLicense varies

At a glance

What is it?
Ant Design X is a React component library from the Ant Design team for building AI-driven interfaces, chat, copilots and agent UIs, in the Ant Design visual style. Its repository license metadata is unrecognized, so confirm the terms in the LICENSE file.
Who is it for?
Adopt Ant Design X if you build AI chat, copilot or agent interfaces in a React application that already uses Ant Design and want ready, consistently styled components rather than hand-building them. Do not expect it to provide a model or backend; it is the interface layer, and it is best inside the antd React ecosystem.
Can I use it commercially?
Not without permission. GitHub finds no licence file in the repository, and without a licence all rights are reserved by default: you may read the code but not reuse it. Check the README, or ask the authors, before using it.
Is it still maintained?
Yes. The repository last received commits 3 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

What Ant Design X provides

Building a chat or copilot interface for an AI product means the same components over and over: a message list with distinct user and assistant bubbles, a prompt input with attachments, streaming responses, suggested prompts. Ant Design X, from the Ant Design team, packages those as a React component library so you assemble an AI interface from ready pieces rather than building each from scratch. It carries the Ant Design visual style, so an AI feature matches an existing antd application. The audience is React developers, especially those already using Ant Design, who are adding a chat, copilot or agent surface to a product and want components and interaction patterns tuned for AI conversations. It is a front-end component kit, not a model or backend, so it supplies the interface layer and you connect it to whatever model or API drives the conversation.

AI-oriented components and patterns

The mechanism is a set of components designed around AI conversation rather than generic UI. It provides building blocks such as conversation bubbles, a prompt sender with attachment support, prompt suggestions and the surrounding layout, along with an XProvider for shared configuration, so the pieces compose into a coherent interface consistent with Ant Design. The library reflects a considered design approach to AI interaction, offering patterns for how an assistant presents itself and how the user drives it, rather than only isolated widgets. The changelog shows ongoing refinement, for example an XProvider option to extract styles at build time to avoid runtime style injection for performance. Because it is built by the Ant Design team, it aligns with antd's theming and component conventions, which is its central advantage for teams already in that ecosystem: the AI surface looks and behaves like the rest of their antd app.

Adding it to a React project

Ant Design X is published on npm and installs like any React dependency:

bash
npm install @ant-design/x

You then import its components into a React app, wrap the relevant tree in its provider for configuration, and compose the conversation, bubbles, sender and suggestions, wiring the input and streaming to your own model or API. It is meant to sit alongside Ant Design, so it fits naturally in a project already using antd. The first real use is rendering its message bubbles and prompt sender in a component and connecting them to a simple echo or a model endpoint, which shows how the interface pieces fit together and stream, and confirms the styling matches your antd setup, before you build out a full assistant experience on top of the components.

Where a UI kit stops

The limitations are those of a front-end library. Ant Design X is the interface only: it does not provide a model, a backend or conversation logic, so you build and secure the part that actually answers, and its value is confined to the UI layer. It is React-specific and Ant Design styled, so it fits antd React apps best and is not the natural choice outside that ecosystem, which the related searches, asking about Vue and other frameworks, reflect. As a component library it evolves, so APIs and components change across versions and you pin and track them. And there is a licensing note: the repository's license metadata is unrecognized rather than a clear standard license in this listing, so despite being an Ant Design project you should confirm the exact terms in the LICENSE file before depending on it. These are ordinary boundaries for a UI kit rather than shortcomings.

Ant Design X versus plain antd or another AI-UI kit

The alternatives are building the chat UI yourself with plain Ant Design components, or using a different AI-interface library. Assembling it from base antd gives full control and no new dependency, but you rebuild the conversation bubbles, streaming input and suggestion patterns that Ant Design X already provides, which is repetitive work. A framework-agnostic or headless AI-UI kit may offer more styling freedom but will not match Ant Design out of the box. Ant Design X's difference is that it is the antd team's own AI-interface layer, so it is styled and themed consistently with antd and encodes AI interaction patterns directly. Choose plain antd when you want to hand-build a small surface; choose another kit if you are not in the Ant Design ecosystem; and choose Ant Design X when you want ready AI interface components that match an existing Ant Design application.

License to verify and active development

The status to note is that Ant Design X is an actively developed React library from a well-established design-system team, structured as a monorepo of packages such as the core library and card components, with English and Chinese changelogs. The last push was on 2026-09-15, and recent releases add capabilities like a zero-runtime styling mode, so it is being maintained and improved. Because its license shows as unrecognized in this listing rather than a clear standard license, confirm the terms in the LICENSE file before building on or redistributing it, even though Ant Design projects are typically permissively licensed. Adopt it when you build AI chat or copilot interfaces in a React and Ant Design application, install @ant-design/x, render its bubbles and sender connected to your model, and pin the version you use since the component APIs evolve.

Editorial conclusion

Adopt Ant Design X if you build AI chat, copilot or agent interfaces in a React application that already uses Ant Design and want ready, consistently styled components rather than hand-building them. Do not expect it to provide a model or backend; it is the interface layer, and it is best inside the antd React ecosystem. Install @ant-design/x, render its bubbles and prompt sender wired to your model, pin the version since APIs evolve, and confirm the terms in the LICENSE file before depending on it.

Frequently asked questions

What is Ant Design X?

Ant Design X is a React component library from the Ant Design team for building AI-driven interfaces such as chat, copilots and agent UIs, providing conversation bubbles, a prompt sender and suggestions in the Ant Design visual style.

How do I install it?

It is on npm: install @ant-design/x, import its components into your React app, wrap the tree in its provider for configuration, and connect the input and streaming to your own model or API. It pairs naturally with Ant Design.

Does it include an AI model or backend?

No. Ant Design X is a front-end component library only. It supplies the interface layer for a conversation; you build and connect the model, backend and conversation logic that actually answer.

Official sources

  1. ant-design/x on GitHub
  2. Issues
  3. Project website
  4. README
  5. Releases
Community notes

Community notes