@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
12 lines (11 loc) • 354 B
JavaScript
import { useId } from '@atlaskit/ds-lib/use-id';
// Exposing a hook as a convenience for consumers, so they don't need to import
// from ds-lib themselves.
/**
* Returns a unique ID for use by layout elements and skip links.
* You can use this for custom skip links.
*/
export function useSkipLinkId() {
var uniqueId = useId();
return uniqueId;
}