MCPcopy Create free account
hub / github.com/adobe/react-spectrum / openSyntheticLink

Function openSyntheticLink

packages/react-aria/src/utils/openLink.tsx:176–178  ·  view source on GitHub ↗
(target: Element, modifiers: Modifiers)

Source from the content-addressed store, hash-verified

174}
175
176function openSyntheticLink(target: Element, modifiers: Modifiers) {
177 getSyntheticLink(target, link => openLink(link, modifiers));
178}
179
180export function useSyntheticLinkProps(props: LinkDOMProps): DOMAttributes<HTMLElement> {
181 let router = useRouter();

Callers

nothing calls this directly

Calls 2

getSyntheticLinkFunction · 0.85
openLinkFunction · 0.85

Tested by

no test coverage detected