UNPKG

navkit-vue

Version:

Vue navigation and utility composables

11 lines (10 loc) 606 B
import type { NavigationYType } from "../types/navigation"; export declare function useNavigationY({ rows, initialPosition, disabled, focusableSelector, autofocus, focusClass, cyclic, onRowStart, onRowEnd, onEnter, onReturn, onRight, onLeft, }: NavigationYType): { position: import("vue").Ref<number, number>; currentElement: HTMLElement | null; setPosition: (pos: number) => number; toggleDisabled: (value?: boolean) => void; isValidPosition: (row: number) => boolean; focusElement: (element: HTMLElement | null) => void; getCurrentFocusedElement: () => HTMLElement | null; };