A lightbox is a UI component used to display (in this case) an image in a modal overlay appearing on top of the main content. It provides users with an immersive way to focus on content without disrupting the overall layout, while also allowing them to quickly navigate back to the content beneath the lightbox.
This component is deprecated! Please use the new Lightbox instead.
Old component won’t get updates unless extraordinary circumstances require otherwise → reach out to our PO to discuss it.
New component should always be used unless extraordinary circumstances require otherwise → reach out to our PO to discuss it.
If you are looking to migrate this component and require help, reach out to the #ask-design-system Slack channel.
<tk-expandable-image
image-uri="/images/expandable-image/kitten-portrait.png"
description="kitten-portrait.png"
image-alt="Picture of a kitten"
focus-text="Expand image"
></tk-expandable-image>
<tk-lightbox-image
close-label="Close lightbox"
></tk-lightbox-image><tk-expandable-image
image-uri="/images/expandable-image/kitten.png"
description="Sample-Image.png"
image-alt="Picture of a kitten"
focus-text="Expand image"
></tk-expandable-image>
<tk-lightbox-image
close-label="Close lightbox"
title="Will a somewhat longer title placed here cause wrapping over multiple lines?"
></tk-lightbox-image><tk-expandable-image
image-uri="https://upload.wikimedia.org/wikipedia/commons/3/3a/Cat03.jpg"
description="Large cat.jpg"
image-alt="Very large image for zoom test"
focus-text="Expand image"
></tk-expandable-image>
<tk-lightbox-image
close-label="Close lightbox"
></tk-lightbox-image>