Rebar UI

1.0

opinion

Lightbox

A thumbnail that opens a full-screen preview, with optional action buttons.

Van livery photosLast action: none yet
No actions
Copy and download
Own trigger

In context

File galleryvan-livery-photos.zip, 48 MB
Harbour rebrandVan livery photos

Props

PropTypeRequiredDefault
srcstringYes—
altstringYes—
triggerReactNodeNo—
openboolean | undefinedNo—
defaultOpenboolean | undefinedNo—
onOpenChange((open: boolean) => void) | undefinedNo—
classNamestring | undefinedNo—
onCopy(() => void) | undefinedNo—
onDelete(() => void) | undefinedNo—
onMove(() => void) | undefinedNo—
onDownload(() => void) | undefinedNo—
moreActionsDropdownItem[] | undefinedNo—

data-rebar-* attributes

data-rebar-component="lightbox"; parts: trigger, thumbnail, image, actions. The fullscreen dialog itself carries Dialog's own attributes.

Migrating to Ant Design

AntD bundles fullscreen preview directly into its own Image component (a preview prop) rather than as a separate component — a migration typically folds this into that prop instead of keeping a standalone lightbox.