Skip to main content

Interface: UseIsStuckResult<T>

Defined in: use-is-stuck.ts:34

The object returned by useIsStuck.

Type Parameters​

T​

T extends Element

Properties​

isStuck​

isStuck: boolean

Defined in: use-is-stuck.ts:38

Whether the element is currently pinned at its sticky edge.


ref​

ref: (element) => void

Defined in: use-is-stuck.ts:36

Attach this to the position: sticky element, as its ref.

Parameters​

element​

T | null

Returns​

void