Base

  • Colors
  • Icons
  • Logos
  • Shadows and Elevations
  • Spacing
  • Typography

Components

  • Accordion
  • Avatars
  • Badges
  • Buttons
  • Cards
  • Character Counter
  • Device Type Icons
  • Draggables
  • Dropdowns
  • Droppables
  • Expandable image
  • Filters
  • Gallery card
  • Icon Button
  • Indicators
  • Lightbox image
  • Lists
  • Loading
  • Messages
  • Pictogram
  • Poster Play
  • Progress bar
  • QR Code
  • Rating stars
  • Row Selector
  • Segmented Controls
  • Sentiment
  • Split View
  • Tables
  • Tags
  • Tester vitals
  • Toggle button
  • Typeahead

Form

  • Checkbox
  • Combobox
  • Form Rule
  • Hint
  • Input
  • Input Title
  • Label
  • Multi-select List
  • Search
  • Select
  • Single-select List
  • Sliders
  • Switch
  • Text Area

Layout

  • Containers
  • Layers
  • Layout
  • Split Layout
  • Wrappers

Navigation

  • Context Switcher
  • Nav bar
  • Navigation
  • Pagination
  • Sidebar Navigation
  • Step Navigation
  • Tabs

Overlay

  • Banners
  • Bulk Selector
  • Modals
  • Popovers
  • Toast
  • Tooltips
  • User Notifications

Patterns

  • Full Page Message
  • Question card & Group Questions Container

Visualizations

  • Data Colors

Lightbox image

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 only available in the userTestingNext theme.

Lightbox

Expand Copy
  <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>

Description

Lightbox with a title

Expand Copy
  <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 mulitple lines?"
  >
  </tk-lightbox-image>

Description

tk-lightbox-image

Properties

Property Attribute Description Type Default
assets Uri to the image to show inside of the lightbox. { uri: string; alt: string; }[] undefined
closeLabel close-label Label to be used for the aria-label attribute on the close icon of the lightbox string undefined
title title Renders a title used as a heading for the lightbox. A title is optional and can be omitted. string undefined

Events

Event Description Type
lightboxClose This event can be used as a hook to trigger certain functionality when the lightbox closes CustomEvent<any>
lightboxOpen This event can be used as a hook to trigger certain functionality when the lightbox opens CustomEvent<any>

Methods

closeLightbox() => Promise<void>

Returns

Type: Promise<void>

openLightbox() => Promise<void>

Returns

Type: Promise<void>