Skip to main content

Your opinion matters! Together with you, we want to continuously improve KoliBri. Share your ideas, wishes, or suggestions—quickly and easily.

Progress

#Progress

The Progress component creates a progress bar that can be used to provide visual feedback.

Construction

Code

<div>
<kol-progress _label="Fortschritt" _variant="bar" _max="100" _value="20"></kol-progress>
<kol-progress _label="Fortschritt" _variant="cycle" _max="100" _value="20"></kol-progress>
</div>

Example

Usage

Use the _variant attribute to control the visual output of the component. Possible values ​​are:

  • bar: for output as a horizontal progress bar
  • cycle: for output as a circular progress bar

Use the _max attribute to determine the maximum value of the component, the minimum is always 0.

Use the _value attribute to determine the current value of the component.

Properties

PropertyAttributeDescriptionTypeDefault
_label_labelDefines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.).string | undefinedundefined
_max (required)_maxDefines the maximum value of the element.numberundefined
_unit_unitDefines the unit of the step values (not shown).string | undefined'%'
_value (required)_valueDefines the value of the element.numberundefined
_variant_variantDefines which variant should be used for presentation."bar" | "cycle" | undefinedundefined

Live editor

Examples