Anchor Design System

Progress bar3.0

Progress bar description

Installation

npm i @tryg/ui-library

Usage

Individual only imports the desired component, and only needs to be included once within the application. Which is beneficial to keep the application size small.

Webcomponent
<script type="module">
  import { defineCustomElement } from '@tryg/ui-library/dist/components/anchor-progress-bar';
  defineCustomElement();
</script>
<anchor-progress-bar label="Progress bar" value="50"></anchor-progress-bar>

Global only needs to be defined once in the application, but it will import all components even the ones that are not in use..

Webcomponent
<script type="module">
  import { defineCustomElements } from '@tryg/ui-library/dist/loader';
  defineCustomElements();
</script>
<anchor-progress-bar label="Progress bar" value="50"></anchor-progress-bar>

Indeterminate

<anchor-progress-bar label="Progress bar" indeterminate></anchor-progress-bar>

Reverse

<anchor-progress-bar label="Progress bar" value="50" reverse></anchor-progress-bar>

Show percentage

<anchor-progress-bar label="Progress bar" value="50" show-percentage></anchor-progress-bar>

Steps (experimental)

<anchor-progress-bar label="Stepped progress bar" value="50" steps="4" step="2"></anchor-progress-bar>

Steps indeterminate (experimental)

<anchor-progress-bar label="Connecting to wifi" steps="3" step="2" indeterminate></anchor-progress-bar>

API

progress-bar

Properties

PropertyAttributeDescriptionTypeDefault
heightheightnumber8
indeterminateindeterminatebooleanfalse
labellabelstringnull
reversereversebooleanfalse
showPercentageshow-percentagebooleanfalse
stepstep0 | 1 | 10 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91
stepssteps1 | 10 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 91
uuiduuidGive this instance of button a custom ID, or keep the default.stringuuidv4()
valuevalue0 | 1 | 10 | 100 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 2 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 3 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 4 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 5 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 6 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 7 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 8 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 9 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 990

Dependencies

Depends on

Graph


Built with StencilJS

On this page