navkit-vue
Version:
Vue navigation and utility composables
18 lines (17 loc) • 494 B
TypeScript
import { type ComputedRef, type Ref } from "vue";
export type useScrollIntoFocusType = {
position: Ref<{
row: number;
col: number;
}>;
selectedElement: ComputedRef<HTMLElement | null> | Ref<HTMLElement | null>;
behavior?: "smooth" | "instant";
delay?: number;
focusableSelector?: string;
parentSelector?: string;
buffer?: number;
bufferX?: number;
bufferY?: number;
suppressLogs?: boolean;
scrollType: "throttle" | "debounce";
};