Skip to content

Interface: UseLinkPopoverResult ​

Returned by useLinkPopover().

Properties ​

PropertyModifierTypeDescription
statereadonlyReadonly<ShallowRef<LinkPopoverState>>The controller state as a shallow ref; updated on the client while the scope is alive.

Methods ​

close() ​

ts
close(options?): void;

Close without applying. Focuses the editor unless focusEditor is false.

Parameters ​

ParameterType
options?{ focusEditor?: boolean; }
options.focusEditor?boolean

Returns ​

void


getErrorProps() ​

ts
getErrorProps(): VueProps;

Props for the error message: role="alert", hidden while there is no error.

Returns ​

VueProps


getFormProps() ​

ts
getFormProps(): VueProps;

Props for the form: role="group", aria-label. Submit applies the address.

Returns ​

VueProps


getInputProps() ​

ts
getInputProps(): VueProps;

Props for the address input: aria-label, value, aria-invalid on error. Escape closes.

Returns ​

VueProps


getRemoveProps() ​

ts
getRemoveProps(): VueProps;

Props for the Remove button; hidden unless the selection is in a link.

Returns ​

VueProps


getTriggerProps() ​

ts
getTriggerProps(): VueProps;

Props for the toolbar button: id, aria-label, title with the shortcut, aria-keyshortcuts, aria-pressed (inside a link), aria-expanded, aria-controls. Click toggles the form.

Returns ​

VueProps


openPopover() ​

ts
openPopover(): void;

Open the form, filled with the current link's address or https://, and focus the field.

Returns ​

void