Overview
Go Headless

Changelog

Site Extensions
Overview
Site Extensions Reference

Editor React Components
About Editor React Components
Editor React Component Extension Files and Code
Component Requirements
About Auto Panels for Editor React Components
Manifest Reference
Editor Element
Editor React Types
Overview
Reference
A11y
RichText
Text
TextEnum
WebUrl
Email
Phone
Hostname
Regex
Guid
NumberType
BooleanValue
LocalDate
LocalTime
LocalDateTime
Image
Video
Audio
VectorArt
VisualMedia
Link
MenuItems
Direction
Container
ArrayItems
Schema
DataType
Wix

Context Providers
About Context Provider Extensions
Context Provider Extension Files and Code
About the Context Provider Manifest
Context Reference
Data Reference
Context Provider Resources Reference
Context Provider Data Types

Function Libraries
About Function Libraries
Function Library Extension Files and Code
About the Function Library Manifest
Function Reference
Function Library Resources Reference

Custom Elements
About Custom Element Site Widgets
Custom Element Site Widget Extension Files and Code

Embedded Scripts
About Embedded Scripts
Embedded Script Extension Files and Code

Site Pages
About Site Pages

Site Plugins
About Site Plugins
Site Plugin Extension Files and Code
In This Article

  1. Component
  2. Manifest

Link

A navigation target the Wix user picks in the editor, such as an external URL, another page, or an anchor. Use it for any field whose value points somewhere. At runtime it's an object with the address and how the link should open.

Component

In your component code, import the Link type from @wix/editor-react-types:

Copy

A Link has the following properties:

hrefstring

The link address. On a partial link this holds only the router prefix, not a full URL.


target'_self' | '_blank'

Where the link opens. '_self' uses the same tab, '_blank' a new tab.


relstring

The anchor rel attribute, as space-separated values such as 'noopener noreferrer'.


pageRolestring

Present only on a partial link. Names the page whose full URL the router resolves at runtime. You read it to detect a partial link. You normally do not set it.

Usage

Your code either consumes a value of type Link or produces one:

Manifest

In your manifest, declare the field with the link dataType:

Copy

Declaration

Declare a link field in one of these ways, depending on where the value comes from:

Last updated: 2 November 2026

Did this help?