UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

11 lines (10 loc) 394 B
type UseLinkInterceptionSettings = { htmlContainer: HTMLDivElement; onLinkClick?: (event: MouseEvent) => void; openLinksInNewTab: boolean; }; /** * Updates all links in the container to open a new tab and call `onLinkClick` on click. */ export declare const useLinkInterception: ({ htmlContainer, onLinkClick, openLinksInNewTab }: UseLinkInterceptionSettings) => void; export {};