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

Cards

Cards are useful to hold content. They have been used to contain content related to screeners and tasks.

Sizes

Small Card

Card Content

This will span full width of its container.

Medium Card

Card Content

This will span full width of its container.

Expand Copy
<tk-card size="small">
  <tk-card-header>
    <h3 class="t-large">Small Card</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This will span full width of its container.</p>
  </tk-card-body>
</tk-card>
<tk-card size="medium" class="mt-3x">
  <tk-card-header>
    <h3 class="t-large">Medium Card</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This will span full width of its container.</p>
  </tk-card-body>
</tk-card>

Description

Medium cards are used for containing content in a medium area.

Types

This feature is only available in the userTestingNext theme.

Interactive Outline Card (Default)

Card Content

This is where the card info would go.

This is a footer

Interactive Elevated Card

Card Content

This is where the card info would go.

This is a footer

Interactive Filled Card

Card Content

This is where the card info would go.

This is a footer

Interactive Dissolved Card

Card Content

This is where the card info would go.

This is a footer

Expand Copy
<tk-banner class="mv-3x">This feature is only available in the <code>userTestingNext</code> theme.</tk-banner>
<tk-card size="small" interactive tabindex="0">
  <tk-card-header>
    <h3 class="t-large">Interactive Outline Card (Default)</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

<tk-card size="small" interactive type="elevated" tabindex="0" class="mt-3x">
  <tk-card-header>
    <h3 class="t-large">Interactive Elevated Card</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

<tk-card size="small" interactive type="filled" tabindex="0" class="mt-3x">
  <tk-card-header>
    <h3 class="t-large">Interactive Filled Card</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

<tk-card size="small" interactive type="dissolved" tabindex="0" class="mt-3x">
  <tk-card-header>
    <h3 class="t-large">Interactive Dissolved Card</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

Description

The elevated card has a shadow and appears to be higher off the canvas than surrounding content, brings focus and attention. A filled card has no shadow or outline, appears flat on the canvas, differentiated only by background colour. The outline card has an outline, sits flat on the canvas.

Drag

This feature is only available in the userTestingNext theme.

Drag

Card Content

This is where the card info would go.

This is a footer

Expand Copy
<tk-banner class="mv-3x">This feature is only available in the <code>userTestingNext</code> theme.</tk-banner>
<tk-card size="small" drag interactive tabindex="0">
  <tk-card-header>
    <h3 class="t-large">Drag</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

Description

The drag prop can be used in combination with the other card types and is used for moving a card to and from it’s original location.

Spacing

This feature is only available in the userTestingNext theme.

Spacing 0

Best used for cards that need an image

Spacing 8

Card Content

This is where the card info would go.

This is a footer

Spacing 16

Card Content

This is where the card info would go.

This is a footer

Spacing 24

Card Content

This is where the card info would go.

This is a footer

Spacing 32

Card Content

This is where the card info would go.

This is a footer

Spacing 40

Card Content

This is where the card info would go.

This is a footer

Expand Copy
<tk-banner class="mv-3x">This feature is only available in the <code>userTestingNext</code> theme.</tk-banner>
<h3 class="t-large">Spacing 0</h3>
<p>Best used for cards that need an image</p>
<tk-card spacing="0x" style="background-image: url('https://placekitten.com/1000/300'); height: 200px">
</tk-card>

<tk-card spacing="1x" class="mt-3x">
  <tk-card-header>
    <h3 class="t-large">Spacing 8</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

<tk-card spacing="2x" class="mt-3x">
  <tk-card-header>
    <h3 class="t-large">Spacing 16</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

<tk-card class="mt-3x" spacing="3x">
  <tk-card-header>
    <h3 class="t-large">Spacing 24</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

<tk-card class="mt-3x" spacing="4x">
  <tk-card-header>
    <h3 class="t-large">Spacing 32</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

<tk-card class="mt-3x" spacing="5x">
  <tk-card-header>
    <h3 class="t-large">Spacing 40</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>This is where the card info would go.</p>
  </tk-card-body>
  <tk-card-footer>
    <p>This is a footer</p>
  </tk-card-footer>
</tk-card>

Description

Small cards are used for containing content in a small area.

Moveable

Moveable Card

Card Button

Uses:

  • Screener Questions
  • Task Editor
  • Highlight Reel
Expand Copy
<tk-card moveable>
  <tk-card-header>
    <h3 class="t-large">Moveable Card</h3>
    <tk-card-toolbar>
      <tk-button type="ghost">Card Button</tk-button>
    </tk-card-toolbar>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Uses:</h4>
    <ul class="bulleted-list">
      <li>Screener Questions</li>
      <li>Task Editor</li>
      <li>Highlight Reel</li>
    </ul>
  </tk-card-body>
</tk-card>

Description

This card pattern works well with droppable and draggable styles. Moveable cards house content that give customers the ability to manipulate their order. This makes them great for screeners and tasks.

Numerated

1

Header

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem

2

Header

Card Button

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem

Expand Copy
<div>
  <!-- card #1 -->
  <tk-card size="medium">
    <tk-card-header>
      <tk-badge class="mr-2x">1</tk-badge>
      <h3 class="t-medium m-0x task__count">Header</h3>
    </tk-card-header>
    <tk-card-body>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem</p>
    </tk-card-body>
  </tk-card>

  <!-- card #2 -->
  <tk-card class="mt-4x" size="medium">
    <tk-card-header>
      <tk-badge class="mr-2x">2</tk-badge>
      <h3 class="t-medium m-0x task__count">Header</h3>
      <tk-card-toolbar>
        <tk-button type="ghost">Card Button</tk-button>
      </tk-card-toolbar>
    </tk-card-header>
    <tk-card-body>
      <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem</p>
    </tk-card-body>
  </tk-card>
</div>

Description

Like moveable cards, numerated cards are often paired with screeners and tasks to serve as a reference in which the content will be seen.

Insight

Note: The numerated tk-badges must each contain their index that follows the placement of the cards.

Removable card

Show the card

Removable Card Content

Card Content

Expand Copy
<tk-button class="mb-2x" onClick="card.openCard()">
  Show the card
</tk-button>
<tk-card id="card" muted removable>
  <tk-card-header>
    <h3 class="t-large">Removable Card Content</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
  </tk-card-body>
</tk-card>

Description

The removable card is using the height transition to slide-down/up when it opens and closes.

Compact Card

Compact Card

Card Button

Card Content

The spacing is tighter for compact cards.

Expand Copy
<tk-card compact>
  <tk-card-header>
    <h3 class="t-large">Compact Card</h3>
    <tk-card-toolbar>
      <tk-button type="ghost">Card Button</tk-button>
    </tk-card-toolbar>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
    <p>The spacing is tighter for compact cards.</p>
  </tk-card-body>
</tk-card>

Description

Compact cards should be used when the outer container is compacted.

Variants

Light Card

Card Content

Muted Card

Card Content

Expand Copy
<tk-card>
  <tk-card-header>
    <h3 class="t-large">Light Card</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
  </tk-card-body>
</tk-card>

<tk-card muted class="mt-5x">
  <tk-card-header>
    <h3 class="t-large">Muted Card</h3>
  </tk-card-header>
  <tk-card-body>
    <h4 class="t-medium">Card Content</h4>
  </tk-card-body>
</tk-card>

Description

Light (default): for the dark background.
Muted: for the light background.

Usage

Do

  • Use the card for the correct amount of content
  • Group like items within a card
  • Use moveable and numerated cards together

Don't

  • Use movable cards for cards that aren’t meant to be moved
  • Use larger cards inside of smaller cards

Accessibility

  • Does not receive :focus

tk-card

Properties

Property Attribute Description Type Default
compact compact This prop is to set the compact styling of the card. boolean false
drag drag This prop is to set the drag styling of the card. It is only themed for userTestingNext. boolean false
interactive interactive This prop is to set the interactive state of the card. It is only themed for userTestingNext. boolean false
moveable moveable This prop is to set the moveable styling of the card. boolean false
muted muted A boolean flag indicating whether the color of the card should be muted or not. boolean false
removable removable A boolean flag indicating whether the card is removeable. boolean false
size size This prop is to set the size of the card. "full-width" | "large" | "medium" | "small" | "xl" 'medium'
spacing spacing This prop is to set the outer spacing of the card. It is only themed for userTestingNext. "0x" | "1x" | "2x" | "3x" | "4x" | "5x" '2x'
type type This prop is to set the type of the card. It is only themed for userTestingNext. "dissolved" | "elevated" | "filled" | "outline" 'outline'
visible visible A boolean flag indicating whether the card is visible. boolean !this.removable

Events

Event Description Type
close Fires when the removeable card is closed. CustomEvent<any>

Methods

closeCard() => Promise<void>

Returns

Type: Promise<void>

openCard() => Promise<void>

Returns

Type: Promise<void>