@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
11 lines (10 loc) • 499 B
TypeScript
import { type SkipLinkData } from './types';
/**
* Internal-only hook for registering skip links.
*
* `useSkipLink` is the public API wrapper of this.
*
* This private version exists for us to support `onBeforeNavigate` / `navigate` for the side nav use case,
* where we might need to expand it before moving focus, without having to support those publicly.
*/
export declare const useSkipLinkInternal: ({ id, label, listIndex, onBeforeNavigate, navigate, isHidden, }: SkipLinkData) => void;