sterling-svelte  2.0.19
A modern, accessible, lightweight UI component library for Svelte.

Progress

A visual indicator of a value between a minimum and a maximum.

Code
<script lang="ts">
  import { Progress } from '@geoffcox/sterling-svelte';
</script>

<Progress max="100" value="35" />

Members

Property NameTypeBindableDefaultComment
maxnumber | undefinedno100The maximum value.
percentnumber | undefinedno0A read-only percentage between 0 and 100 calculated from value and max.
valuenumber | undefinedno0The current value.
verticalboolean | null | undefinednoundefinedWhen true, the progress bar is displayed vertically.
disabledboolean | null | undefinednofalseDeprecated. Progress is not interactive and should not have disabled state.

Types

Type NameDefinitionComment
ProgressOrientation'horizontal' | 'vertical'Used for the orientation property.

Considerations

  • Includes HTMLDivElement props, events, and methods.

Anatomy

<div class="sterling-progress">
  <div class="container">
    <div class="indicator"></div>
  </div>
</div>