Overlays
Custom shell lightbox
Custom shell lightbox: A gallery grid that opens a borderless full-bleed lightbox, showing how one open, close and focus engine can wear a completely custom shell.
Using Custom shell lightbox
Custom shell lightbox uses the wide preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
imageCount | number | 5 | From 3 to 10; step 1 |
backdropOpacity | number | 92 | From 60 to 100; step 2 |
showCaption | boolean | true | No additional limit in the metadata. |
Which frameworks are available for Custom shell lightbox?
Custom shell lightbox is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Custom shell lightbox depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Custom shell lightbox?
The React source for Custom shell lightbox includes: native elements (button); attributes and handlers (aria-hidden, aria-label, aria-modal, onKeyDown, tabIndex); explicit roles (dialog); key comparisons (ArrowLeft, ArrowRight, Escape). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Custom shell lightbox handle reduced motion?
Custom shell lightbox reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduceMotion ? 0.001 : 0.28; scale: reduceMotion ? 1 : 0.97. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.