Choose a component
Pick Photo, PhotoAlbum, PhotoGroup, or PhotoCarousel for the result you need.
Start with the component that already owns the layout and navigation you need.
Most applications use PhotoAlbum.
<PhotoAlbum>Rows, columns, or masonry with an included lightbox.
Open guideAll four components accept the same photo data. Nuxt registers them automatically after you install the module.
Photo
Use Photo for one image. Add lightbox when selecting it should open the
viewer.
<Photo :photo="cover" lightbox />Use it for a cover, article image, or any isolated photo. It does not create a multi-photo collection.
PhotoAlbum
Use PhotoAlbum for responsive photo rows, columns, or masonry. Its lightbox is
enabled by default.
<PhotoAlbum :photos="photos" layout="rows" />This is the normal starting point for a gallery page.
PhotoGroup
Use PhotoGroup when several rendered sections must navigate through one
explicit photo collection.
<PhotoGroup :photos="allPhotos">
<PhotoAlbum :photos="landscapes" />
<PhotoAlbum :photos="portraits" />
</PhotoGroup>The photos prop defines the shared navigation order. Descendant albums connect
their thumbnails by photo ID.
PhotoCarousel
Use PhotoCarousel for horizontal browsing. Its lightbox is off by default, so
enable it only when selecting a slide should open the viewer.
<PhotoCarousel :photos="photos" :lightbox="true" />The carousel supports arrows, thumbnails, dots, autoplay, looping, and right-to-left direction.
When ready-made components are not enough
First use component props, CSS variables, and slots. Use LightboxProvider,
PhotoTrigger, and the lightbox primitives only when the design requires a
different thumbnail layout or lightbox structure.
Customization levels explains the order without requiring you to learn the lower-level API now.