naive-ui/demo/documentation/components/icon/zhCN/basic.demo.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

25 lines
399 B
Markdown

# 基础用法
```html
<n-icon
size="40"
>
<game-controller-outline />
</n-icon>
<n-icon
size="40"
color="#0e7a0d"
>
<game-controller />
</n-icon>
```
```js
import gameControllerOutline from 'naive-ui/lib/icons/game-controller-outline'
import gameController from 'naive-ui/lib/icons/game-controller'
export default {
components: {
gameControllerOutline,
gameController
}
}
```