naive-ui/demo/documentation/components/popconfirm/enUS/customIcon.md
2020-01-31 22:36:22 +08:00

28 lines
442 B
Markdown

# Custom Icon
```html
<n-popconfirm
positive-text="ok"
negative-text="not ok"
>
<template v-slot:icon>
<n-icon
color="red"
>
<md-hand />
</n-icon>
</template>
<template v-slot:activator>
<n-button>Quit Game</n-button>
</template>
How can you be strong without purchasing?
</n-popconfirm>
```
```js
import mdHand from 'naive-ui/lib/icons/md-hand'
export default {
components: {
mdHand
}
}
```