XProvider
XProvider
Provide a uniform configuration support for x components.
Importimport{ XProvider }from"@ant-design/x"; |
Sourcecomponents/x-provider |
Importimport{ XProvider }from"@ant-design/x"; |
Sourcecomponents/x-provider |
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';- <ConfigProvider>- // ...- </ConfigProvider>+ <XProvider>+ // ...+ </XProvider>
XProvider
fully extends antd
's ConfigProvider
. Props ref:Antd ConfigProvider
Property | Description | Type | Default | Version |
---|---|---|---|---|
bubble | Global configuration for the Bubble component | 'classNames' | 'styles' | 'className' | 'style' | - | |
conversations | Global configuration for the Conversations component | 'classNames' | 'styles' | 'className' | 'style' | - | |
prompts | Global configuration for the Prompts component | 'classNames' | 'styles' | 'className' | 'style' | - | |
sender | Global configuration for the Sender component | 'classNames' | 'styles' | 'className' | 'style' | - | |
suggestion | Global configuration for the Suggestion component | 'className' | 'style' | - | |
thoughtChain | Global configuration for the ThoughtChain component | 'classNames' | 'styles' | 'className' | 'style' | - |