Sanity Library Reference Docs
    Preparing search index...

    Interface UseLinkOptions

    interface UseLinkOptions {
        href?: string;
        onClick?: MouseEventHandler<HTMLElement>;
        replace?: boolean;
        target?: string;
    }
    Index

    Properties

    href?: string

    The URL that the link should navigate to.

    onClick?: MouseEventHandler<HTMLElement>

    The event handler function that should be called when the link is clicked.

    replace?: boolean

    Whether the link should replace the current URL in the browser history.

    target?: string

    The target window or frame that the linked document will open in.