SurfaceHoverOptions

How useSurfaceHover finds and compares what is pointed at.

@internote/canvas-sdk/reactInterface
On this page
import { SurfaceHoverOptions } from '@internote/canvas-sdk/react';

#Fields

equals
Whether two values are the same thing, so moving within one does not re-render.
(a: T, b: T) => boolean
DefaultObject.is
interactive
Whether the surface is interactive. A finger's tap pins only on an interactive canvas.
boolean
Defaulttrue
pick
Returns what is under the pointer, or null for nothing. Needed for bind; a surface that binds only item leaves it out.
(event: React.PointerEvent<Element>) => T | null

Declared in packages/canvas-sdk/src/react/use-surface-hover.ts:35.

Last updated