With the viewer on, the wrapper becomes a button: it takes a tab stop, a name from alt, and opens the viewer on Enter or Space.
- Your own tabIndex and aria-label win over the defaults.
- preview={false} removes the button role, the tab stop and the label, leaving the image and its alt. Use it for pictures that are not interactive.
- Twenty previewable thumbnails are twenty tab stops. If they are not the main content, make the list rows the tab stops and open the viewer with preview.open.
- Do not put a link or a button inside the wrapper. It is already a button, so the picture would get two tab stops.