XProvider
Provide a uniform configuration support for x components.
Import |
Sourcecomponents/x-provider |
Import |
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';const App = () => (- <ConfigProvider>+ <XProvider><YourApp />- </ConfigProvider>+ </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' | - |