wallet-connect-web-examples/dapps/vue-dapp-auth/components/EthBalance.vue
Pavel Yankovski 7e850d66c4
feat(vue-dapp-auth): Add example dapp on Vue 3 (#76)
Co-authored-by: Ben Kremer <contact@bkrem.dev>
2022-11-14 18:13:55 +01:00

18 lines
397 B
Vue

<template>
<loading-spinner v-if="loading" class="tw-h-8" />
<div v-else class="tw-h-8 tw-leading-xs tw-inline-flex tw-items-center tw-gap-2">
<img src="/img/eth.png" alt="ETH" class="tw-size-8">
{{ value }} ETH
</div>
</template>
<script setup lang="ts">
interface Props {
value?: number | null
loading?: boolean
}
withDefaults(defineProps<Props>(), {
value: 0,
})
</script>