Skip to main content

Link

A React component which renders an anchor tag and navigates to the specified route when clicked. This is useful when you want to use a React component in a Vendure UI plugin which navigates to a route in the admin-ui.

Example

import { Link } from '@vendure/admin-ui/react';

export const MyReactComponent = () => {
return <Link href="/extensions/my-extension">Go to my extension</Link>;
}
Signature
function Link(props: PropsWithChildren<{ href: string; [props: string]: any }>): void

Parameters

props

parameter
PropsWithChildren<{ href: string; [props: string]: any }>