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

Progress

A visual bar that expands to indicate progress.

Types

export type ProgressStatus = 'none' | 'auto' | 'progress' | 'success' | 'warning' | 'danger';

Props

HTMLDivElement props are included.

/** When true, the progress bar is disabled. */
export let disabled = false;

/** The maximum value. */
export let max = 100;

/** A read-only percentage between 0 and 100 calculated from value and max. */
export let percent = 0;

/** The current status of the progress. */
export let status: ProgressStatus = 'none';

/** The current value. */
export let value = 0;

/** Additional class names to apply. */
export let variant: string = '';

/** When true, the progress bar is displayed vertically. */
export let vertical: boolean = false;

Events

HTMLDivElement events are included.

Anatomy

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

Playground