封装全部或部分 React 树以提供主题配置。
¥API Reference
有关主题的概述,请参阅 概览页面。
¥For an overview of theming see the overview page.
¥Examples
¥Basic configuration
在 Theme
组件中封装一个组件树,以便为所有子组件提供或修改配置。
¥Wrap a component tree in the Theme
component to provide or modify configuration for all children.
¥Nesting
嵌套另一个主题以修改特定子树的配置。配置从父级继承。
¥Nest another theme to modify configuration for a specific subtree. Configuration is inherited from the parent.
¥Component overrides
通过将任何支持的 props 直接传递给组件来覆盖每个组件的配置。
¥Override configuration per component by passing any supported prop directly to that component.