naive-ui/demo/documentation/components/element/enUS/index.md

23 lines
489 B
Markdown
Raw Normal View History

2019-12-10 22:42:17 +08:00
# Element
Element can be render as a custom tag with the ability of accessing some configurations provided by `n-config-provider`.
2020-01-27 16:26:38 +08:00
2020-01-12 00:26:44 +08:00
## Demos
2019-12-10 22:42:17 +08:00
```demo
basic
color
2020-01-12 00:26:44 +08:00
```
2020-01-27 16:26:38 +08:00
## Props
|Name|Type|Default|Description|
|-|-|-|-|
|as|`string`|`'div'`|The tag `n-element` should be rendered as.|
2020-01-27 16:26:38 +08:00
## Slots
|Name|Parameters|Description|
|-|-|-|
|default|`(theme: string, namespace: string, themeEnvironment: any, styleScheme: object)`||
2020-01-27 16:26:38 +08:00
## Events
|Name|Parameters|
|-|-|
|theme-change|`(theme: string)`|