Progress

A visual indicator showing the completion status of a task.

Installation

Install the component package, shared coss-svelte theme, and Bits UI peer.

npm install coss-svelte @coss-svelte/theme bits-ui

Usage

Import the Svelte component exports directly from the package.

import { Progress } from "coss-svelte";

Anatomy

Progress exposes a single component export for the current implementation.

API Reference

Progress

A visual indicator showing the completion status of a task.

PropTypeDefaultDescription
valuenumber | null45Current value for the component. Bind with `bind:value` when supported.
minnumber0Minimum value for the control.
maxnumber100Maximum value for the control.
labelstring""Accessible label or fallback visible label for the control.
children : Snippet<[]>bind:ref : HTMLElement | null

Inherits from Bits UI Progress.Root.

Implementation Details

Status
Stable
Foundation
bits
Category
Feedback & Status
Particles
3