Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

docs(core): preview Lightbox with the overlay open trigger (#3686)

Jiun Shine62cd6c381fe
diff --git a/.changeset/lightbox-properties-preview-shows-the-overlay-op-499x.md b/.changeset/lightbox-properties-preview-shows-the-overlay-op-499x.md
new file mode 100644
index 0000000000..a7d4406042
--- /dev/null
+++ b/.changeset/lightbox-properties-preview-shows-the-overlay-op-499x.md
@@ -0,0 +1,6 @@
+---
+'@astryxdesign/core': patch
+---
+
+[docs] Lightbox Properties preview shows the overlay open trigger instead of an empty stage (playground.overlay)
+@jiunshinn
diff --git a/packages/core/src/Lightbox/Lightbox.doc.mjs b/packages/core/src/Lightbox/Lightbox.doc.mjs
index 3ddfd3b370..8518b7277f 100644
--- a/packages/core/src/Lightbox/Lightbox.doc.mjs
+++ b/packages/core/src/Lightbox/Lightbox.doc.mjs
@@ -64,8 +64,13 @@ export const docs = {
{ guidance: false, description: 'Nest interactive content inside captions; keep them plain text.' },
],
},
+ // The lightbox opens via showModal() and renders nothing while closed —
+ // overlay mode gives the Properties preview an open trigger instead of an
+ // empty stage, mirroring MobileNav (#3616).
playground: {
+ overlay: true,
defaults: {
+ isOpen: false,
media: {
src: 'https://lookaside.facebook.com/assets/astryx/light-scene-horizontal-1.png',
alt: 'Coastal shoreline with ocean waves',