Skip to content

Function: useClipboard()

useClipboard<TRow>(options): UseClipboardReturn<TRow>

Defined in: src/tree-editor/use-clipboard.ts:54

Internal clipboard for cut/copy/paste of subtrees. Avoids the system clipboard so the structural data isn’t serialized to text.

Multiple pastes from the same copy each receive freshly-minted ids, so re-pasting never collides with the previous insert.

Type Parameters

TRow

TRow

Parameters

options

UseClipboardOptions<TRow>

Returns

UseClipboardReturn<TRow>