Improve `<BiometricManager>` component
deptyped opened this issue · 0 comments
deptyped commented
- Slots API
<script lang="ts" setup>
import { BiometricManager } from 'vue-tg'
</script>
<template>
<BiometricManager>
<!-- isBiometricInited: false -->
<template #loading>
<p>Biometric init...</p>
</template>
<!-- isBiometricInited: true, isBiometricAvailable: false -->
<template #not-supported>
<p>Biometric is not supported on the current device</p>
</template>
<!-- isBiometricInited: true, isBiometricAccessGranted: false -->
<template #not-granted>
<p>Biometric access is not granted</p>
</template>
<p>Biometric is ready to use</p>
</BiometricManager>
</template>