A visual bar that expands to indicate progress.
export type ProgressStatus = 'none' | 'auto' | 'progress' | 'success' | 'warning' | 'danger';
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;
HTMLDivElement events are included.
<div class="sterling-progress">
<div class="container">
<div class="indicator" />
</div>
</div>