Copy to clipboard
<Progress value={60} />
<Progress value={60} /><Progress value={60} />
Installation
npm install @vds-testing/react @vds-testing/stylesnpm install @vds-testing/elements @vds-testing/stylesSee Installation for CSS setup.
Usage
React:
import { Progress } from "@vds-testing/react"<Progress value={60} />Web Components:
<script type="module">
import "@vds-testing/elements";
</script>
<vds-progress value="60"></vds-progress>Examples
Different values
Copy to clipboard
<div class="grid gap-4 w-full max-w-md">
<Progress value={25} />
<Progress value={50} />
<Progress value={75} />
<Progress value={100} />
</div>
<div class="grid gap-4 w-full max-w-md">
<Progress value={25} />
<Progress value={50} />
<Progress value={75} />
<Progress value={100} />
</div><div class="grid gap-4 w-full max-w-md">
<Progress value={25} />
<Progress value={50} />
<Progress value={75} />
<Progress value={100} />
</div>
Custom max
Copy to clipboard
<Progress value={3} max={10} />
<Progress value={3} max={10} /><Progress value={3} max={10} />
Anatomy
Progress- A single progress bar element
Props
Progress
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | 0 | Current progress value |
| max | number | 100 | Maximum value |
| class | string | - | Additional CSS classes |