pub struct ConfigProviderProps {
pub size: Option<ComponentSize>,
pub disabled: Option<bool>,
pub prefix_cls: Option<String>,
pub locale: Option<Locale>,
pub theme: Option<Theme>,
pub children: Element,
}Expand description
Props for ConfigProvider.
Fields§
§size: Option<ComponentSize>Global default size for components.
disabled: Option<bool>Global disabled flag. When true, interactive components should treat
themselves as disabled unless explicitly overridden.
prefix_cls: Option<String>Global CSS class name prefix. Defaults to "adui".
locale: Option<Locale>Global locale flag to control basic UI language for components that integrate with date/time or other text-heavy features.
theme: Option<Theme>Optional initial theme. If omitted, the current ThemeProvider behaviour is preserved.
children: ElementImplementations§
Source§impl ConfigProviderProps
impl ConfigProviderProps
Sourcepub fn builder() -> ConfigProviderPropsBuilder<((), (), (), (), (), ())>
pub fn builder() -> ConfigProviderPropsBuilder<((), (), (), (), (), ())>
Create a builder for building ConfigProviderProps.
On the builder, call .size(...)(optional), .disabled(...)(optional), .prefix_cls(...)(optional), .locale(...)(optional), .theme(...)(optional), .children(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ConfigProviderProps.
Trait Implementations§
Source§impl Clone for ConfigProviderProps
impl Clone for ConfigProviderProps
Source§fn clone(&self) -> ConfigProviderProps
fn clone(&self) -> ConfigProviderProps
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more