defmodule PyrauiWeb.DocsLive.LightboxDocs do use PyrauiWeb, :html def render(assigns) do ~H"""

Lightbox

Lightbox / Image Viewer component for full-screen image previews with navigation.

Basic Lightbox

<%= for {image, index} <- Enum.with_index(@sample_images) do %> <% end %>

              <.lightbox id="gallery-lightbox" images={@images} current_index={0} show={@show_lightbox} />
            

Props

Prop Type Default Description
images list - List of image URLs or maps with :src and optional :alt
current_index integer 0 Currently displayed image index
""" end end