@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
17 lines (16 loc) • 477 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useSkipLinkId = useSkipLinkId;
var _useId = require("@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.
*/
function useSkipLinkId() {
var uniqueId = (0, _useId.useId)();
return uniqueId;
}