Back to Vueuse

usePermission

packages/core/usePermission/index.md

14.3.0364 B
Original Source

usePermission

Reactive Permissions API. The Permissions API provides the tools to allow developers to implement a better user experience as far as permissions are concerned.

Usage

ts
import { usePermission } from '@vueuse/core'

const microphoneAccess = usePermission('microphone')