Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Examples
  • Image preview
  • Recommendations
  • Usage boundaries
  • API reference

Content

Lightbox

Opens an image fullscreen, frameless on a dark scrim, with Close in the corner.

idle

Usage

import { LightboxGallery } from "@mizen-labs/ui";

Examples

Image preview

Recommendations

GuidancePractice
Do

Give the image useful alternative text and a clear title. Keep the close action visible.

Usage boundaries

GuidanceBoundary
Scope

Use Dialog for editing tasks. Image loading and source quality remain application responsibilities.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
LightboxLightboxPropsDialog defaultsUses Dialog open state, focus containment, dismissal, and restoration.
LightboxTriggerLightboxTriggerPropsButtonCompose a trigger through the shared render API.
LightboxPopupLightboxPopupPropsFullscreenFullscreen overlay with Close in the corner. Escape or a click on the scrim also dismisses it.
LightboxTitle / LightboxDescriptionDialog title and description propsRequired titleName and describe the image for screen readers; both stay off screen.
LightboxImageLightboxImagePropsContained imageRequires src and alt; shows the image frameless at its own proportions within the viewport.
LightboxCloseLightboxClosePropsButtonOptional additional dismissal action.
LightboxGalleryLightboxGalleryPropsRequired aria-label and imagesA grid of thumbnails that opens the fullscreen overlay. A pill with Previous, the position, and Next pages through the set, as do the arrow keys.
PreviousCode BlockNextMarkdown
Rows of lavender under a pink evening sky