naive-ui/demo/documentation/components/popconfirm/enUS/custom-icon.demo.md
2020-11-07 00:07:02 +08:00

453 B

Custom Icon

<n-popconfirm
  positive-text="ok"
  negative-text="not ok"
>
  <template v-slot:icon>
    <n-icon
      color="red"
    >
      <hand-icon />
    </n-icon>
  </template>
  <template v-slot:trigger>
    <n-button>Quit Game</n-button>
  </template>
  How can you be strong without purchasing?
</n-popconfirm>
import { MdHand as HandIcon } from '@vicons/ionicons-v4'

export default {
  components: {
    HandIcon
  }
}