ConfigProvider
Configure a region's theme, appearance and language.
Regional themes and languages
Base sizes and advanced overrides
Small and large controls follow the base height. Use tokens only when a particular size needs an explicit override.
ConfigProvider API
Other native div attributes, className and style apply to the container. Configure themes through theme.
LeafTheme
Defaults apply to an unconfigured application. Nested providers inherit supplied ancestor settings. CSS lengths are accepted; derived small height and font values stay at or above 1px.
LeafThemeTokens
All fields are optional. Explicit values take precedence over generated values.
Types
LeafLocale is 'zh-CN' | 'en-US'. ConfigProviderProps corresponds to the ConfigProvider API.
Usage notes
Nested regions merge tokens by field; explicit derived-size overrides remain inherited. Floating panels, Modal and message / confirm holders inside a region inherit the configuration.
Translate application content, labels and options yourself. Configure themes through ConfigProvider and consume CSS variables in custom components. See theming and SSR usage.