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

Context Switcher

This component is still in Beta. Please reach out to Design System team before using it.

Context switcher

Private Private Private Manage workspaces Account settings Example of context switcher rendered in browser.
Expand Copy
<tk-context-switcher class="mb-4x">
<tk-context-switcher-trigger
slot="trigger"
group-name="[Account name]"
item-name="[Workspace name]"
aria-label="workspace menu title"
role="button"

>   </tk-context-switcher-trigger>

  <tk-context-switcher-menu-group name="Account 1">
    <tk-context-switcher-menu-item
      name="Workspace A"
      link="https://www.usertesting.com/"
      initial="A"
    >
    </tk-context-switcher-menu-item>
    <tk-context-switcher-menu-item
      name="Workspace How do we handle really long strings that we cause wrapping?"
      link="https://www.usertesting.com/"
      initial="B"
      active
    >
      <tk-badge type="info" slot="badge">Private</tk-badge>
    </tk-context-switcher-menu-item>
  </tk-context-switcher-menu-group>
  <tk-context-switcher-menu-group name="Account 2">
    <tk-context-switcher-menu-item
      name="Workspace C"
      link="https://www.usertesting.com/"
      initial="C"
    >
    </tk-context-switcher-menu-item>
    <tk-context-switcher-menu-item
      name="Workspace D"
      link="https://www.usertesting.com/"
      initial="D"
    >
    </tk-context-switcher-menu-item>
    <tk-context-switcher-menu-item
      name="Workspace E"
      link="https://www.usertesting.com/"
      initial="E"
    >
      <tk-badge type="info" slot="badge">Private</tk-badge>
    </tk-context-switcher-menu-item>
    <tk-context-switcher-menu-item
      name="Workspace F"
      link="https://www.usertesting.com/"
      initial="F"
    >
      <tk-badge type="info" slot="badge">Private</tk-badge>
    </tk-context-switcher-menu-item>
  </tk-context-switcher-menu-group>
  <tk-context-switcher-footer-menu slot="footer-menu">
    <tk-context-switcher-footer-item>
      <button class="context-switcher-footer-item__link" type="button">Create workspace</button>
    </tk-context-switcher-footer-item>
    <tk-context-switcher-footer-item>
      <a class="context-switcher-footer-item__link" href="#">Manage workspaces</a>
    </tk-context-switcher-footer-item>
    <tk-context-switcher-footer-item>
      <a class="context-switcher-footer-item__link" href="#">Account settings</a>
    </tk-context-switcher-footer-item>
  </tk-context-switcher-footer-menu>
</tk-context-switcher>

<!-- don't include this (for demo purposes only). -->
<img src="/images/context-switcher-example.png" alt="Example of context switcher rendered in browser.">
<!-- end of ignore -->

Description

Currently there’s no other use case for using this than together with tk-sidebar-nav. For this reason an example is best viewed on a standalone view. See full-page example.