Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 352 Bytes

index.md

File metadata and controls

23 lines (17 loc) · 352 Bytes
category
Sensors

usePointer

Reactive pointer state.

Basic Usage

import { usePointer } from '@vueuse/core'

const { x, y, pressure, pointerType } = usePointer()

Component

<UsePointer v-slot="{ x, y }">
  x: {{ x }}
  y: {{ y }}
</UsePointer>