deptyped / vue-telegram

Telegram integration for Vue
https://vue-tg.pages.dev
MIT License
118 stars 6 forks source link

Add `<PopupButton>` component #14

Open deptyped opened 5 months ago

deptyped commented 5 months ago
<script lang="ts" setup>
import { Popup, PopupButton } from 'vue-tg'

function handleAgreeButton() {
  // ...
}

function handleDisagreeButton() {
  // ...
}
</script>

<template>
  <Popup message="Do you agree?">
    <PopupButton text="Agree" type="ok" @click="handleAgreeButton">
    <PopupButton text="Disagree" type="cancel" @click="handleDisagreeButton">
  </Popup>
</template>