Public function

Remove a frame.

Signature
function removeFrame(editor: Editor, ids: TLShapeId[]): void
Parameters
NameDescription

editor

Editor

tldraw editor instance.

ids

TLShapeId[]

Ids of the frames you wish to remove.

Returns
void
References

Editor, TLShapeId

Source

packages/tldraw/src/lib/utils/frames/frames.ts

RectangleToolbarItemRemoveFrameMenuItem