Go Headless

/

SDK
Articles
Get Started
Work with the SDK
Set up a Client
Use the Wix MCP
What's New

Core Modules
About Core Modules
sdk
sdk-react (deprecated)
essentials
web-methods

Host Modules
About Host Modules
dashboard
dashboard-react (deprecated)
Migrating from dashboard-react
Introduction
PageLink
withDashboard()
useDashboard()
usePageLocation()
editor
site

Backend Modules
About Backend Modules
activity-counters
analytics
async-jobs
ai-site-chat
app-management
auth-management
automations
benefit-programs
billing
blog
bookings
business-tools
cache
calendar
captcha
categories
comments
consent-policy
crm
dashboard-management
data
data-extension-schemas
ecom
email-marketing
email-subscriptions
embeds
events
forms
forum
get-paid
groups
http-functions
identity
inbox
loyalty
marketing
marketing-consent
marketing-tags
media
members
moderation-rules
multilingual
notifications
payments
portfolio
pricing-plans
pro-gallery
redirects
reports
restaurants
reviews
search
secrets
stores
tags
urls
site-plugins
sender-details
sender-emails
realtime

Account Level Modules
About Account Level APIs
b2b-site-management
domains
resellers
user-management
sites

Frontend Modules
About Frontend Modules
bookings
crm
ecom
events
location
members
mobile
navigate-mobile
pay
pricing-plans
seo
site
storage
stores
window
site-realtime
In This Article

  1. Props
  2. Examples

PageLink

Deprecated

This component is deprecated. For more information, see Migrating from dashboard-react.

A React component that renders an HTML anchor element that leads to a dashboard page.

Props

The PageLink component accepts the following props:

NameTypeDescription
destinationDestinationDestination for the desired link.
onClickFunctionOn click event handler.
childrenReact children propLink content

Destination Object

NameTypeDescription
pageIdstringID of the page to link to. Use the Page IDs table to find the appropriate ID.
relativeUrlstringOptional. URL segment to append to the base URL of the selected page. Can include path segments, a query string, and a fragment identifier.

In addition, the component will forward other props to the inline anchor element.

Examples

To set up a dashboard client for React, refer to the setup guide.

Rendering a link to the home page

Copy
Did this help?