Skip to content
providerkit
GitHub

LinkDecision

type LinkDecision =
| "link"
| "text"
| {
onClick: (event) => void;
};

Defined in: react/src/markdown.tsx:95

What a link becomes. "link" is an ordinary link, "text" is its text with no link, and { onClick } is a link whose clicks the app handles: call event.preventDefault() in it to route inside the app or to ask first. Without that call, the browser follows the link.