app/pb_kits/playbook/pb_lightbox/docs/_lightbox_current_photo

The currentPhotoIndex prop allows the user to pass a number to the lightbox that will set the current slide by index. This can be leveraged if the user wants to change slides using custom buttons. To do this, the user must also make use of the current slide’s index that is exposed by the onChange prop.