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

Switch

Switch for users to customize their experience.

Light Switch

Invisibility cloak
Copy
<tk-light-switch
    is-checked="false"
    on-check="yourMethod()">
<span slot="label" class="l-block mb-2x t-heavy">Invisibility cloak</span>
</tk-light-switch>

Description

Light switches help communicate access to a feature and/or piece of functionality. We use --interface-primary to denote “on” and --interface-secondary-light to denote “off.”

Note: if integrating into an Angular app, the attributes will need to be camelcase and wrapped in as inputs.

Light Switch: Disabled

Invisibility cloak
Copy
<tk-light-switch
    is-checked="false"
    is-disabled="true"
    on-check="yourMethod()">
<span slot="label" class="l-block mb-2x t-heavy">Invisibility cloak</span>
</tk-light-switch>

Accessibility

  • We automatically append “enable” or “disable” to the aria-label. Please consider this when choosing a label.