@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
15 lines • 718 B
text/typescript
//#region src/base-ui/FocusScope/useScopeArrowNav.d.ts
interface UseScopeArrowNavOptions {
enabled?: boolean;
extra?: Record<string, (event: KeyboardEvent) => void>;
itemSelector?: string;
onItemFocus?: (el: HTMLElement) => void;
scopeId: string;
vimKeys?: boolean;
}
declare const notifyScopeItemFocus: (scopeId: string, el: HTMLElement) => void;
declare const focusScopeItem: (scopeId: string, el: HTMLElement) => void;
declare const useScopeArrowNav: ({ scopeId, itemSelector, enabled, vimKeys, onItemFocus, extra }: UseScopeArrowNavOptions) => void;
//#endregion
export { UseScopeArrowNavOptions, focusScopeItem, notifyScopeItemFocus, useScopeArrowNav };
//# sourceMappingURL=useScopeArrowNav.d.mts.map