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

Progress bar

General purpose component to track progress

Progress bar

Copy
<tk-progress-bar label="Uploading video" value="32"></tk-progress-bar>

Description

Use the value prop to indicate progress. Default scale 0 - 100. See max prop to set a different scale.

Size: small

Copy
<tk-progress-bar label="Uploading video" value="12" size="small"></tk-progress-bar>

Description

Use the size prop to render the small variant.

Size: large

Copy
<tk-progress-bar label="Uploading video" value="12" size="large"></tk-progress-bar>

Description

Use the size prop to render the large variant.

Steps


Expand Copy
<tk-progress-bar label="Uploading video" steps="5" active-step="1"></tk-progress-bar>
<hr />
<tk-progress-bar label="Uploading video" steps="6" active-step="2" size="large"></tk-progress-bar>

Description

Use the steps prop to divide the progress bar into a number of steps. Use together with the optional active-step to indicate progression.

Max

Copy
<tk-progress-bar label="Uploading video" value="4" max="8"></tk-progress-bar>

Description

Use the max prop to render a scale different from the default. (0 - 100)

Is responsive


Copy
<tk-progress-bar label="Uploading video" is-responsive="true" value="12"></tk-progress-bar>
<hr />
<tk-progress-bar label="Uploading video" is-responsive="false" value="12" size="large"></tk-progress-bar>

Description

Use the isResponsive prop to render (true) or not (false) the circular variant on small screens.

Variant circular

Copy
<tk-progress-bar label="Uploading video" variant="circular" value="32"></tk-progress-bar>

Variant circular: size

Copy
<tk-progress-bar label="Uploading video" variant="circular" value="12" size="large"></tk-progress-bar>

Variant circular: steps

Copy
<tk-progress-bar
  variant="circular"
  size="large"
  label="Uploading video"
  steps="6"
  active-step="2"
></tk-progress-bar>

Variant circular: max

Copy
<tk-progress-bar label="Uploading video" variant="circular" value="4" max="8"></tk-progress-bar>

tk-progress-bar

Properties

Property Attribute Description Type Default
activeStep active-step Current step the progress bar is on. Use this together with the steps prop to define how many total steps exist. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 undefined
isResponsive is-responsive When true this will render the circular variant for smaller viewports. boolean true
label label Progress bar elements must have discernible text that clearly describes the destination, purpose, function, or action for screen reader users. string undefined
max max The value when the progress bar is full / complete. For use-cases where a value of 100 does not represent a completed process. number 100
size size Size (height) of the progress bar "large" | "medium" | "small" "medium"
steps steps Amount of steps the progress bar needs to be divided into. Maximum of 8. 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 MIN_STEPS_COUNT
value value Pass a value to fill the progress bar to. Automatically calculated for a stepped progress bar. number 0
variant variant Specifies which variant to render. "circular" | "horizontal" "horizontal"

Methods

returnValue() => Promise<number>

Returns

Type: Promise<number>