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

Gallery card

This component is in Beta. Gallery Cards are used to hold specific types of content. They have been used to preview content on the dashboard such as highlight reels and insights.

Default in a Grid Layout

The most basic magic ever known 8:30

Wingardium Leviosa

A charm used to make objects fly, or levitate. It was taught to first-years at Hogwarts School of Witchcraft and Wizardry.

Hermione Granger

Updated March 22,2022

Basic magic 7:29

Alohomora

A spell to open locks; aka "the thief's friend.

Hermione Granger

Updated March 22,2022

The best magic ever 7:29

Lumos

A charm that illuminated the tip of the caster's wand, allowing the caster to see in the dark. The counter-charm for the spell was the Wand-Extinguishing Charm (Nox), which was used to extinguish the light from the caster's wand.

Hermione Granger

Updated March 22,2022

Expand Copy
<div class="l-grid l-col-3 l-md-col-2 l-sm-col-1 l-gap-2x">
  <tk-gallery-card selectable>
    <tk-gallery-card-content-type class="l-flex l-v-center">
      <tk-badge icon type="light">
        <tk-icon name="bolt"></tk-icon>
          The most basic magic ever known
      </tk-badge>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <button type="button" class="btn--icon-only" aria-label="Share Wingardium Leviosa">
        <tk-icon name="share"></tk-icon>
      </button>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Send a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Recieve a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Delete a Howler
          </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
    <tk-gallery-card-body>
      <tk-poster-play
        class="mb-3x"
        poster-image-url="https://cdn3.vectorstock.com/i/1000x1000/77/77/unique-and-colorful-graphic-of-video-thumbnail-vector-40327777.jpg"
      >
        <span class="ml-2x t-base t-heavy" slot="play-length">8:30</span>
      </tk-poster-play>
      <tk-gallery-card-title>
        <h2 class="t-base t-heavy">Wingardium Leviosa</h2>
      </tk-gallery-card-title>
      <p class="t-truncate-2x">A charm used to make objects fly, or levitate. It was taught to first-years at Hogwarts School of Witchcraft and Wizardry.</p>
    </tk-gallery-card-body>
    <tk-gallery-card-footer>
      <tk-gallery-card-metadata>
        <p class="mb-0x t-small t-ghost t-heavy">Hermione Granger</p>
        <p class="t-ghost">Updated March 22,2022</p>
      </tk-gallery-card-metadata>
    </tk-gallery-card-footer>
  </tk-gallery-card>
  <tk-gallery-card>
    <tk-gallery-card-content-type>
      <tk-badge icon type="light">
        <tk-icon name="bolt"></tk-icon>
        Basic magic
      </tk-badge>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <button type="button" class="btn--icon-only" aria-label="Share Alohomora">
        <tk-icon name="share"></tk-icon>
      </button>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Send a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Recieve a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Delete a Howler
          </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
    <tk-gallery-card-body>
      <tk-poster-play
        class="mb-3x"
        poster-image-url="https://cdn3.vectorstock.com/i/1000x1000/16/72/unique-and-colorful-video-thumbnail-design-vector-39131672.jpg"
      >
        <span class="ml-2x t-base t-heavy" slot="play-length">7:29</span>
      </tk-poster-play>
      <tk-gallery-card-title>
        <h2 class="t-base t-heavy">Alohomora</h2>
      </tk-gallery-card-title>
      <p class="t-truncate-2x">A spell to open locks; aka "the thief's friend.</p>
    </tk-gallery-card-body>
    <tk-gallery-card-footer>
      <tk-gallery-card-metadata>
        <p class="mb-0x t-small t-ghost t-heavy">Hermione Granger</p>
        <p class="t-ghost">Updated March 22,2022</p>
      </tk-gallery-card-metadata>
    </tk-gallery-card-footer>
  </tk-gallery-card>
  <tk-gallery-card>
    <tk-gallery-card-content-type>
      <tk-badge icon type="light">
        <tk-icon name="bolt"></tk-icon>
        The best magic ever
      </tk-badge>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <button type="button" class="btn--icon-only" aria-label="Share Lumos">
        <tk-icon name="share"></tk-icon>
      </button>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Send a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Recieve a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Delete a Howler
          </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
    <tk-gallery-card-body>
      <tk-poster-play
        class="mb-3x"
        poster-image-url="https://cdn3.vectorstock.com/i/1000x1000/16/72/unique-and-colorful-video-thumbnail-design-vector-39131672.jpg"
      >
        <span class="ml-2x t-base t-heavy" slot="play-length">7:29</span>
      </tk-poster-play>
      <tk-gallery-card-title>
        <h2 class="t-base t-heavy">Lumos</h2>
      </tk-gallery-card-title>
      <p class="t-truncate-2x">A charm that illuminated the tip of the caster's wand, allowing the caster to see in the dark. The counter-charm for the spell was the Wand-Extinguishing Charm (Nox), which was used to extinguish the light from the caster's wand.</p>
    </tk-gallery-card-body>
    <tk-gallery-card-footer>
      <tk-gallery-card-metadata>
        <p class="mb-0x t-small t-ghost t-heavy">Hermione Granger</p>
        <p class="t-ghost">Updated March 22,2022</p>
      </tk-gallery-card-metadata>
    </tk-gallery-card-footer>
  </tk-gallery-card>
</div>

Description

Our Gallery Card component holds a preview of the content and is usually displayed in a grid with other Gallery Cards. The parent container dictates the width of the card. The tk-poster-play component is used within gallery card, you can learn more about it here.

Ratio wide

The most basic magic ever known 8:30

Wingardium Leviosa

A charm used to make objects fly, or levitate. It was taught to first-years at Hogwarts School of Witchcraft and Wizardry.

Hermione Granger

Updated March 22,2022

Basic magic 7:29

Alohomora

A spell to open locks; aka "the thief's friend.

Hermione Granger

Updated March 22,2022

The best magic ever 7:29

Lumos

A charm that illuminated the tip of the caster's wand, allowing the caster to see in the dark. The counter-charm for the spell was the Wand-Extinguishing Charm (Nox), which was used to extinguish the light from the caster's wand.

Hermione Granger

Updated March 22,2022

Expand Copy
<div class="l-grid l-col-3 l-md-col-2 l-sm-col-1 l-gap-2x">
  <tk-gallery-card>
    <tk-gallery-card-content-type class="l-flex l-v-center">
      <tk-badge icon type="light">
        <tk-icon name="bolt"></tk-icon>
          The most basic magic ever known
      </tk-badge>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <button type="button" class="btn--icon-only" aria-label="Share Wingardium Leviosa">
        <tk-icon name="share"></tk-icon>
      </button>
      <button type="button" class="btn--icon-only" aria-label="Share Wingardium Leviosa">
        <tk-icon name="email"></tk-icon>
      </button>
    </tk-gallery-card-actions>
    <tk-gallery-card-body>
      <tk-poster-play
        ratio="wide"
        class="mb-3x"
        poster-image-url="https://cdn3.vectorstock.com/i/1000x1000/77/77/unique-and-colorful-graphic-of-video-thumbnail-vector-40327777.jpg"
      >
        <span class="ml-2x t-base t-heavy" slot="play-length">8:30</span>
      </tk-poster-play>
      <tk-gallery-card-title>
        <h2 class="t-base t-heavy">Wingardium Leviosa</h2>
      </tk-gallery-card-title>
      <p class="t-truncate-2x">A charm used to make objects fly, or levitate. It was taught to first-years at Hogwarts School of Witchcraft and Wizardry.</p>
    </tk-gallery-card-body>
    <tk-gallery-card-footer>
      <tk-gallery-card-metadata>
        <p class="mb-0x t-small t-ghost t-heavy">Hermione Granger</p>
        <p class="t-ghost">Updated March 22,2022</p>
      </tk-gallery-card-metadata>
    </tk-gallery-card-footer>
  </tk-gallery-card>
  <tk-gallery-card>
    <tk-gallery-card-content-type>
      <tk-badge icon type="light">
        <tk-icon name="bolt"></tk-icon>
        Basic magic
      </tk-badge>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <button type="button" class="btn--icon-only" aria-label="Share Alohomora">
        <tk-icon name="share"></tk-icon>
      </button>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Send a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Recieve a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Delete a Howler
          </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
    <tk-gallery-card-body>
      <tk-poster-play
        ratio="wide"
        class="mb-3x"
        poster-image-url="https://cdn3.vectorstock.com/i/1000x1000/16/72/unique-and-colorful-video-thumbnail-design-vector-39131672.jpg"
      >
        <span class="ml-2x t-base t-heavy" slot="play-length">7:29</span>
      </tk-poster-play>
      <tk-gallery-card-title>
        <h2 class="t-base t-heavy">Alohomora</h2>
      </tk-gallery-card-title>
      <p class="t-truncate-2x">A spell to open locks; aka "the thief's friend.</p>
    </tk-gallery-card-body>
    <tk-gallery-card-footer>
      <tk-gallery-card-metadata>
        <p class="mb-0x t-small t-ghost t-heavy">Hermione Granger</p>
        <p class="t-ghost">Updated March 22,2022</p>
      </tk-gallery-card-metadata>
    </tk-gallery-card-footer>
  </tk-gallery-card>
  <tk-gallery-card>
    <tk-gallery-card-content-type>
      <tk-badge icon type="light">
        <tk-icon name="bolt"></tk-icon>
        The best magic ever
      </tk-badge>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <button type="button" class="btn--icon-only" aria-label="Share Lumos">
        <tk-icon name="share"></tk-icon>
      </button>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Send a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Recieve a Howler
          </button>
        </tk-dropdown-item>
        <tk-dropdown-item>
          <button class="dropdown__link" type="button">
            Delete a Howler
          </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
    <tk-gallery-card-body>
      <tk-poster-play
        ratio="wide"
        class="mb-3x"
        poster-image-url="https://cdn3.vectorstock.com/i/1000x1000/16/72/unique-and-colorful-video-thumbnail-design-vector-39131672.jpg"
      >
        <span class="ml-2x t-base t-heavy" slot="play-length">7:29</span>
      </tk-poster-play>
      <tk-gallery-card-title>
        <h2 class="t-base t-heavy">Lumos</h2>
      </tk-gallery-card-title>
      <p class="t-truncate-2x">A charm that illuminated the tip of the caster's wand, allowing the caster to see in the dark. The counter-charm for the spell was the Wand-Extinguishing Charm (Nox), which was used to extinguish the light from the caster's wand.</p>
    </tk-gallery-card-body>
    <tk-gallery-card-footer>
      <tk-gallery-card-metadata>
        <p class="mb-0x t-small t-ghost t-heavy">Hermione Granger</p>
        <p class="t-ghost">Updated March 22,2022</p>
      </tk-gallery-card-metadata>
    </tk-gallery-card-footer>
  </tk-gallery-card>
</div>

Description

Passing a ratio="wide" prop to the tk-poster-play component renders the thumbnail on the card in a 16:9 ratio.

Minimal version in a Grid Layout

Astronomy Care of Magical Creatures Charms
Expand Copy
<div class="l-grid l-col-3 l-md-col-2 l-sm-col-1 l-gap-2x">
  <tk-gallery-card minimal>
    <tk-gallery-card-content-type class="l-flex l-v-center">
      <tk-icon name="folder"></tk-icon>
      <span class="t-heavy t-small ml-2x">Astronomy</span>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Send a Howler
            </button>
          </tk-dropdown-item>
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Recieve a Howler
            </button>
          </tk-dropdown-item>
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Delete a Howler
            </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
  </tk-gallery-card>
  <tk-gallery-card minimal selectable>
    <tk-gallery-card-icon>
      <tk-icon name="folder"></tk-icon>
    </tk-gallery-card-icon>
    <tk-gallery-card-content-type>
      <span class="t-heavy t-small ml-2x">Care of Magical Creatures</span>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Send a Howler
            </button>
          </tk-dropdown-item>
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Recieve a Howler
            </button>
          </tk-dropdown-item>
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Delete a Howler
            </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
  </tk-gallery-card>
  <tk-gallery-card minimal selectable>
    <tk-gallery-card-icon>
      <tk-icon name="folder"></tk-icon>
    </tk-gallery-card-icon>
    <tk-gallery-card-content-type>
      <span class="t-heavy t-small ml-2x">Charms</span>
    </tk-gallery-card-content-type>
    <tk-gallery-card-actions>
      <tk-dropdown trigger-type="action" button-label="See Howler options">
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Send a Howler
            </button>
          </tk-dropdown-item>
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Recieve a Howler
            </button>
          </tk-dropdown-item>
          <tk-dropdown-item>
            <button class="dropdown__link" type="button">
              Delete a Howler
            </button>
        </tk-dropdown-item>
      </tk-dropdown>
    </tk-gallery-card-actions>
  </tk-gallery-card>
</div>

Description

The Gallery Card component can be used in minimal mode. This mode is intended for showing basic data only, usually an icon, a title, an action and a short description. If a Gallery Card in minimal mode is also selectable, the checkbox appears where the icon used to be when you hover over a card.

tk-gallery-card

Properties

Property Attribute Description Type Default
minimal minimal Boolean flag indicating whether a card should be rendered in minimal mode boolean false
selectable selectable Boolean flag indicating whether a card should be rendered with a checkbox to be able to select it boolean false
selected selected State indicator of whether a card is currently selected boolean false

Events

Event Description Type
cardSelect Fires when a card is selected by clicking its checkbox CustomEvent<boolean>

Slots

Slot Description
"actions" Actions that the user can take with the selected items. It should always be on the far right side. If using our tk-dropdown, the dropdown should have a position of top-right.
"body" Displays a title and description of the card content
"content-type" Displays the content type of the card content
"footer" Shows tertiary information like created date, created by, etc.
"title" Displays the title of the card content

Usage

Do

  • If you are using the gallery card in a grid, do use our grid utility classes on the parent element to set the number of cards in the row
  • Reserve the use of tk-gallery-card-content-type sub-component for our badge or badge-like content
  • When in minimal mode, reserve the use of tk-gallery-card-content-type sub-component for an icon (like tk-icon)

Don't

  • Add more than four actions in the tk-gallery-card-actions
  • Add more than one action in tk-gallery-card-actions if using the Gallery Card in minimal mode sub-component