interface LinkProps {
    children: ReactNode;
    className?: string;
    href?: string;
    onClick?: ((e?) => void);
    onNavigate: ((href) => void) | "standard-html-link";
    openInNewTab?: boolean;
}

Properties

children: ReactNode

Children to render as link

className?: string

Class name property to pass to a tag

href?: string

Where the link should navigate to (this is a href, like '/my-page', not a block link (my-page.index))

onClick?: ((e?) => void)

onClick to handle click events

Type declaration

    • (e?): void
    • onClick to handle click events

      Parameters

      • Optional e: MouseEvent<Element, MouseEvent>

      Returns void

onNavigate: ((href) => void) | "standard-html-link"

Called when the link is clicked (ignores normal click behavior)

Type declaration

    • (href): void
    • Parameters

      • href: string

      Returns void

openInNewTab?: boolean

When using standard-html-link, open the link as a new tab

Generated using TypeDoc