Returns an object with an onClick function that can be used as a click handler for a link.
onClick
An object containing the properties for the link. See UseLinkOptions
An object with an onClick function.
const linkProps = useLink({ href: 'https://www.sanity.io', target: '_blank'})<a {...linkProps}>Link</a> Copy
const linkProps = useLink({ href: 'https://www.sanity.io', target: '_blank'})<a {...linkProps}>Link</a>
Returns an object with an
onClick
function that can be used as a click handler for a link.