mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
21 lines
805 B
Markdown
21 lines
805 B
Markdown
# Config Provider
|
|
Config Provider is used to set global theme, set global language and set namespace for components (detached parts).
|
|
## Demos
|
|
```demo
|
|
theme
|
|
namespace
|
|
inherit-theme
|
|
theme-environment
|
|
language
|
|
transparent
|
|
```
|
|
## Props
|
|
|Name|Type|Default|Description|
|
|
|-|-|-|-|
|
|
|as|`string`|`'div'`|What tag n-config-provider will be rendered as|
|
|
|language|`string`|`en-US`|Language of components inside n-config-provider|
|
|
|namespace|`string`|`null`|Class name of detached parts of components inside n-config-provider|
|
|
|theme|`string`|`null`|Theme name of components inside n-config-provider|
|
|
|theme-environment|`object`|`null`|An object with some value which can be accessed by n-config-consumer or n-element inside n-config-provider|
|
|
|transparent|`boolean`|`false`|If n-config-provider has no wrapper DOM|
|