Skip to content

Vizel API / react/src / VizelLinkEditor

Function: VizelLinkEditor()

ts
function VizelLinkEditor(__namedParameters): Element | null;

Defined in: packages/react/src/components/VizelLinkEditor.tsx:44

A link editor component for editing hyperlinks in the VizelBubbleMenu.

Localized labels, view-state derivation (initial values from the link mark, embed-toggle visibility, etc.), and the editor-command logic for applying the form come from @vizel/core's link-editor skeleton helpers. The component owns input state and event wiring. Pointer-outside and Escape dismissal route through createVizelDismissable from @vizel/headless; deferPointerHandler installs the outside-click listener on the next tick so the opening pointerdown does not register as an outside click. createVizelFocusTrapController traps Tab inside the form, focuses the URL input on open, and returns focus to the bubble-menu trigger on close, so the two headless controllers own every form-level listener.

Parameters

ParameterType
__namedParametersVizelLinkEditorProps

Returns

Element | null

Released under the MIT License.