MCPcopy
hub / github.com/adobe/react-spectrum / useRouter

Function useRouter

packages/react-aria/src/utils/openLink.tsx:81–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81export function useRouter(): Router {
82 return useContext(RouterContext);
83}
84
85interface Modifiers {
86 metaKey?: boolean;

Callers 7

useLinkFunction · 0.90
useComboBoxFunction · 0.90
useSelectableItemFunction · 0.90
useSelectableCollectionFunction · 0.90
useMenuItemFunction · 0.90
useSyntheticLinkPropsFunction · 0.70
useLinkPropsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected