Zazz Design Framework
Components

Lightbox

Lightbox custom element combining an inline gallery, fullscreen dialog, and synchronized thumbnails.

<ui-lightbox> coordinates an inline <ui-carousel> gallery with a fullscreen <dialog> carousel. Slides open the dialog using command="show-modal". The component syncs slide indices between the inline and fullscreen carousels.

Default

Loading components…

Markup structure

MarkupPlacementPurpose
<ui-lightbox>RootCoordinates gallery and modal state
<ui-carousel data-slot="lightbox-stage">GalleryInline carousel with drag and thumbnail support
<dialog class="ui-dialog" data-slot="lightbox-dialog">RootFullscreen modal container
<ui-carousel>DialogFullscreen carousel initialized when modal opens
command="show-modal" / command="close"TriggersOpens and closes dialog using Invoker Commands
data-slot="carousel-viewport" / "carousel-container" / "carousel-thumbs"ChildrenEmbla layout slots
data-slot="lightbox-slide carousel-slide"SlidesSlide serving both primitives (see below)

Because data-slot is a space-separated token list, each slide carries two slots at once: the lightbox styles and syncs it as lightbox-slide, while Embla lays it out as carousel-slide. The same pattern applies to thumbnails (data-slot="lightbox-thumb carousel-slide") and the thumbnail strip (data-slot="lightbox-thumbs carousel-thumbs").

On this page