naive-ui/demo/documentation/components/config-provider/enUS/index.demo-entry.md

22 lines
868 B
Markdown
Raw Normal View History

# Config Provider
2020-01-27 16:11:23 +08:00
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
2020-06-03 13:56:46 +08:00
os-theme
2020-01-27 16:11:23 +08:00
language
transparent
2020-01-04 17:32:23 +08:00
```
2020-01-27 16:11:23 +08:00
## Props
|Name|Type|Default|Description|
|-|-|-|-|
|abstract|`boolean`|`false`|If `n-config-provider` has no wrapper DOM|
2020-10-21 21:20:59 +08:00
|tag|`string`|`'div'`|What tag `n-config-provider` will be rendered as|
|language|`string`|`'en-US'`|Language of components inside `n-config-provider`|
|namespace|`string`|`undefined`|Class name of detached parts of components inside `n-config-provider`|
|theme|`string`|`undefined`|Theme name of components inside `n-config-provider`|
|theme-environments|`{ [themeName: string]: any }`|`undefined`|An object with some value which can be accessed by `n-config-consumer` or `n-element` inside `n-config-provider`|