PointerInputType
typeSource L5Type contract for PointerInputType.
type PointerInputType = "mouse" | "pen" | "touch" | nullOpen-code aq-ui React hook for Use Pointer Type.
pnpm dlx aq-ui@alpha add use-pointer-typeImport the parts you need, then jump to an export for its contract.
"use client"
import { usePointerType } from "@/hooks/use-pointer-type"
const result = usePointerType()Type contract for PointerInputType.
type PointerInputType = "mouse" | "pen" | "touch" | nullOpen-code aq-ui React hook for Use Pointer Type.
function usePointerType(defaultValue: PointerInputType = null): PointerInputTypePointerInputType| Name | Type | Default |
|---|---|---|
defaultValue? | PointerInputType | null |