Interface LinkWithTarget

Extends the basic Link interface by adding an optional target attribute, specifying where to open the linked document.

interface LinkWithTarget {
    href: string;
    label: string;
    target?: null | string;
}

Hierarchy (View Summary)

Properties

Properties

href: string

The URL that the link will navigate to when clicked.

label: string

The text that will be displayed for the link.

target?: null | string

Specifies where to open the linked document. Can be:

  • '_blank': Opens the link in a new tab or window.
  • '_self': Opens the link in the same frame as it was clicked (default).
  • '_parent': Opens the link in the parent frame.
  • '_top': Opens the link in the full body of the window.

This property is optional and can be null if no target is specified.