mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
23 lines
489 B
Markdown
23 lines
489 B
Markdown
# Element
|
|
Element can be render as a custom tag with the ability of accessing some configurations provided by `n-config-provider`.
|
|
|
|
## Demos
|
|
```demo
|
|
basic
|
|
color
|
|
```
|
|
## Props
|
|
|Name|Type|Default|Description|
|
|
|-|-|-|-|
|
|
|as|`string`|`'div'`|The tag `n-element` should be rendered as.|
|
|
|
|
## Slots
|
|
|Name|Parameters|Description|
|
|
|-|-|-|
|
|
|default|`(theme: string, namespace: string, themeEnvironment: any, styleScheme: object)`||
|
|
|
|
## Events
|
|
|Name|Parameters|
|
|
|-|-|
|
|
|theme-change|`(theme: string)`|
|