<template>
  <kk-button :plain="true" @click="open">Show message</kk-button>
  <kk-button :plain="true" @click="openVn">VNode</kk-button>
</template>

<script lang="ts" setup>
import { h } from 'vue'
import { KkMessage, KkButton } from 'kankan-components'

const open = () => {
  KkMessage('this is a message.')
}

const openVn = () => {
  KkMessage({
    message: h('p', null, [
      h('span', null, 'Message can be '),
      h('i', { style: 'color: teal' }, 'VNode'),
    ]),
  })
}
</script>
