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

Function getSyntheticLinkProps

packages/react-aria/src/utils/openLink.tsx:178–187  ·  view source on GitHub ↗
(props: LinkDOMProps)

Source from the content-addressed store, hash-verified

176
177/** @deprecated - For backward compatibility. */
178export function getSyntheticLinkProps(props: LinkDOMProps): DOMAttributes<HTMLElement> {
179 return {
180 'data-href': props.href,
181 'data-target': props.target,
182 'data-rel': props.rel,
183 'data-download': props.download,
184 'data-ping': props.ping,
185 'data-referrer-policy': props.referrerPolicy
186 } as DOMAttributes<HTMLElement>;
187}
188
189export function useLinkProps(props?: LinkDOMProps): LinkDOMProps {
190 let router = useRouter();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected