logoAnt Design X

XProvider

Provide a uniform configuration support for x components.
Import
import{ XProvider }from"@ant-design/x";

Use

The XProvider extends the ConfigProvider from antd and provides global configuration for components in @ant-design/x.

If you are already using ConfigProvider from antd, please make the following changes to your code:

- import { ConfigProvider } from 'antd';
+ import { XProvider } from '@ant-design/x';
const App = () => (
- <ConfigProvider>
+ <XProvider>
<YourApp />
- </ConfigProvider>
+ </XProvider>
);

Examples

Direction:
  • Conversation - 1
  • Conversation - 2
Hello Ant Design X!
Hello World!
Ignite Your Creativity
Tell me a Joke
Hello Ant Design X!status: success
Ant Design X help you build AI chat/platform app as ready-to-use 📦.
Hello World!status: success
Pending...status: pending

Usage.

codepen icon
External Link Icon
expand codeexpand code

API

XProvider fully extends antd's ConfigProvider. Props ref:Antd ConfigProvider

Component Config

PropertyDescriptionTypeDefaultVersion
bubbleGlobal configuration for the Bubble component'classNames' | 'styles' | 'className' | 'style'-
conversationsGlobal configuration for the Conversations component'classNames' | 'styles' | 'className' | 'style'-
promptsGlobal configuration for the Prompts component'classNames' | 'styles' | 'className' | 'style'-
senderGlobal configuration for the Sender component'classNames' | 'styles' | 'className' | 'style'-
suggestionGlobal configuration for the Suggestion component'className' | 'style'-
thoughtChainGlobal configuration for the ThoughtChain component'classNames' | 'styles' | 'className' | 'style'-
Ask me