naive-ui/demo/documentation/components/avatar/enUS/icon.md

22 lines
365 B
Markdown
Raw Normal View History

2019-11-22 13:21:32 +08:00
# Icon
2020-01-27 18:21:19 +08:00
I like using icon in avatar.
2019-11-22 13:21:32 +08:00
```html
<n-avatar>
2019-11-22 13:27:49 +08:00
<n-icon>
<md-cash />
</n-icon>
2019-11-22 13:21:32 +08:00
</n-avatar>
```
```js
import mdCash from 'naive-ui/lib/icons/md-cash'
import mdContacts from 'naive-ui/lib/icons/md-contacts'
import iosContacts from 'naive-ui/lib/icons/ios-contacts'
export default {
components: {
mdCash,
mdContacts,
iosContacts
}
}
```