Sanity Library Reference Docs
    Preparing search index...

    Interface UseIntentLinkOptions

    interface UseIntentLinkOptions {
        intent: string;
        onClick?: MouseEventHandler<HTMLElement>;
        params?: IntentParameters;
        replace?: boolean;
        target?: string;
    }
    Index

    Properties

    intent: string

    The name of the intent to trigger.

    onClick?: MouseEventHandler<HTMLElement>

    An optional click event handler.

    Optional parameters to pass to the intent. See IntentParameters

    replace?: boolean

    Whether to replace the current URL in the browser history.

    target?: string

    The target window or frame to open the link in.