Roving Focus
pnpm install @roving-focus/reactVertical layout
Hit tab or click on an item to focus one. You can then use the up and down arrows to move the focus around
Horizontal layout
For this one, you need to press the left and right arrow keys. Do you noticed that when you press the right arrow key on the last item it loops back to the first one?
Grid layouts
The library also supports grid layouts.