sterling-svelte  2.0.0
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 NameTypeDefaultComment
disabledboolean | null | undefinedfalseWhen true, the progress bar is disabled.
maxnumber | undefined100The maximum value.
percentnumber | undefined0A read-only percentage between 0 and 100 calculated from value and max.
valuenumber | undefined0The current value.
verticalboolean | null | undefinedundefinedWhen true, the progress bar is displayed vertically.

Types

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

Considerations

  • Includes HTMLDivElement props, events, and methods.

Anatomy

progress (<div>)
  container (<div>)
    indicator (<div>)