Returns props for an anchor element that will trigger an intent when clicked.
Options to use for the link UseIntentLinkOptions
onClick
href
const {onClick, href} = useIntentLink({ intent: 'edit', params: {id: 'foo'}})<a href={href} onClick={onClick}>Link to "foo" editor</a> Copy
const {onClick, href} = useIntentLink({ intent: 'edit', params: {id: 'foo'}})<a href={href} onClick={onClick}>Link to "foo" editor</a>
Returns props for an anchor element that will trigger an intent when clicked.