Display and feedback
Progress
Determinate or indeterminate task progress with native semantics.
Live example
64%
64%
64%
Usage
Each example includes the complete adapter-specific parameter reference. Copy it as a starting point, then remove options your use case does not need.
React
import { Progress } from "@cofob/design-system-react";
/**
* Complete Progress parameter reference.
* @param value
* type: string | number
* default: —
* example: "overview"
* @param max
* type: number
* default: 100
* example: {max}
* @param label
* type: string | renderable content
* default: —
* example: "Accessible label"
* @param valueLabel
* type: adapter-specific
* default: —
* example: "overview"
* @param animated
* type: boolean
* default: false
* example: {animated}
* @param showValue
* type: boolean
* default: true
* example: {showValue}
* @param progress attributes
* type: native element attributes
* default: —
* example: class / style / aria-* / data-*
*/
export function ProgressExample() {
return (
<Progress label="Uploading" value={64} animated showValue />
);
}Svelte
<script lang="ts">
import { Progress } from "@cofob/design-system-svelte";
// Complete Progress parameter reference.
// value
// type: string | number
// default: —
// example: "overview"
// max
// type: number
// default: 100
// example: {max}
// label
// type: string | renderable content
// default: —
// example: "Accessible label"
// valueLabel
// type: adapter-specific
// default: —
// example: "overview"
// animated
// type: boolean
// default: false
// example: {animated}
// showValue
// type: boolean
// default: true
// example: {showValue}
// progress attributes
// type: native element attributes
// default: —
// example: class / style / aria-* / data-*
</script>
<Progress label="Uploading" value={64} animated showValue />HTML
<!--
Complete Progress parameter reference.
value
type: string | number
default: —
example: "overview"
max
type: number
default: 100
example: {max}
label
type: string | renderable content
default: —
example: "Accessible label"
valueLabel
type: adapter-specific
default: —
example: "overview"
animated
type: boolean
default: false
example: {animated}
showValue
type: boolean
default: true
example: {showValue}
progress attributes
type: native element attributes
default: —
example: class / style / aria-* / data-*
-->
<div class="cf-progress" data-animated="true"><progress class="cf-progress__track" value="64" max="100">64%</progress></div>Parameters
Adapter differences are explicit. Native element attributes are forwarded in React and Svelte and can be written directly in HTML.
| Parameter | Type | Default | Adapters | Example | Description |
|---|---|---|---|---|---|
value | string | number | — | React · Svelte · HTML | "overview" | Selected or reported native value. |
max | number | 100 | React · Svelte · HTML | {max} | Highest allowed range or progress value. |
label | string | renderable content | — | React · Svelte · HTML | "Accessible label" | Visible or accessible name, depending on the component. |
valueLabel | adapter-specific | — | React · Svelte · HTML | "overview" | Configures valueLabel. |
animated | boolean | false | React · Svelte · HTML | {animated} | Enables optional progress motion while preserving reduced-motion behavior. |
showValue | boolean | true | React · Svelte · HTML | {showValue} | Shows formatted output beside the slider label. |
progress attributes | native element attributes | — | React · Svelte · HTML | class / style / aria-* / data-* | Forwards native class/style, accessibility, event, and data attributes to the root element. |