Variable handleArrowKeyNavigation
handleArrowKeyNavigation: (
event: KeyboardEvent,
currentIndex: number,
totalItems: number,
onIndexChange: (newIndex: number) => void,
orientation?: "horizontal" | "vertical",
) => void
Type Declaration
- (
event: KeyboardEvent,
currentIndex: number,
totalItems: number,
onIndexChange: (newIndex: number) => void,
orientation?: "horizontal" | "vertical",
): void Parameters
- event: KeyboardEvent
- currentIndex: number
- totalItems: number
- onIndexChange: (newIndex: number) => void
- orientation: "horizontal" | "vertical" = 'vertical'
Returns void
Handle keyboard navigation for arrow keys in a list or grid