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

  • Card Select
  • 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

Expandable image

An image that can be be enlarged to view in full detail using the Lightbox.

Expandable image




>
Expand Copy
<tk-expandable-image
image-uri="/images/expandable-image/kitten-tiny.png"
description="kitten-tiny.png"
image-alt="Picture of a kitten"
focus-text="Expand image"

> </tk-expandable-image>

<hr class="horizontal-rule">

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

<hr class="horizontal-rule">

<tk-expandable-image
image-uri="/images/expandable-image/kitten-smaller.png"
description="Sample-Image.png"
image-alt="Picture of a kitten"
focus-text="Expand image"

> </tk-expandable-image>

<hr class="horizontal-rule">

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

Description

Provide the image-alt attribute to enable screen readers to read information about the image.

>

Expandable image controls

Expand image Delete this file
Expand image
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-controls>

    <tk-expandable-image-control>
      <tk-icon-button type="outline" label="Expand image">
        <tk-icon name="move"></tk-icon>
      </tk-icon-button>
      <tk-tooltip position="left">Expand image</tk-tooltip>
    </tk-expandable-image-control>
    <tk-expandable-image-control>
      <tk-icon-button type="outline" label="Delete this file">
        <tk-icon name="delete"></tk-icon>
      </tk-icon-button>
      <tk-tooltip position="left">Delete this file</tk-tooltip>
    </tk-expandable-image-control>

  </tk-expandable-image-controls>
</tk-expandable-image>

<hr class="horizontal-rule">

<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-controls>

    <tk-expandable-image-control>
      <tk-icon-button type="outline" label="Expand image">
        <tk-icon name="move"></tk-icon>
      </tk-icon-button>
      <tk-tooltip position="left">Expand image</tk-tooltip>
    </tk-expandable-image-control>
    <tk-expandable-image-control>
      <tk-icon-button type="outline" status="disabled" label="Delete this file">
        <tk-icon name="delete"></tk-icon>
      </tk-icon-button>
    </tk-expandable-image-control>

  </tk-expandable-image-controls>
</tk-expandable-image>

Description

A tk-expandable-image-control consists of an icon button and a tooltip. Make sure to render a label on the button. Sse the status attribute on tk-icon-button to render a button as disabled.

Passing a max-width

>
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"
max-width="600"

> </tk-expandable-image>
> 
>

Description

Use this prop to render the image wider than the default max-width of 462px. Height will scale according to the ratio established in the image.

>

Capturing click

Expand image Delete this file
Expand Copy
<!-- for demo only -->

<tk-highlight
style="display: block;"
id="tkHighlight"

> </tk-highlight>

<tk-expandable-image
id="exampleExpandableImage"
image-uri="/images/expandable-image/kitten.png"
description="Sample-Image.png"
image-alt="Picture of a kitten"
focus-text="Expand image"

>   <tk-expandable-image-controls>

    <tk-expandable-image-control>
      <tk-icon-button type="outline" label="Expand image">
        <tk-icon name="move"></tk-icon>
      </tk-icon-button>
      <tk-tooltip position="left">Expand image</tk-tooltip>
    </tk-expandable-image-control>
    <tk-expandable-image-control>
      <tk-icon-button type="outline" label="Delete this file">
        <tk-icon name="delete"></tk-icon>
      </tk-icon-button>
      <tk-tooltip position="left">Delete this file</tk-tooltip>
    </tk-expandable-image-control>

  </tk-expandable-image-controls>
</tk-expandable-image>

Description

This is a vanilla JS example. When using a framework like Angular or React you would code the respective equivalent.

Read-only

>
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"
read-only

> </tk-expandable-image>
> 
>

Description

To disable interaction with the component, pass the read-only prop.

>