DocsComponentsFeedback
Progress
React example follows below.
ts
import { Progress } from "@grassroot/ui-react"; <Progress value={64} aria-label="Upload progress" /><Progress indeterminate aria-label="Loading" />ts
<script setup lang="ts">import { Progress } from "@grassroot/ui-vue";</script> <template> <Progress :value="64" aria-label="Upload progress" /> <Progress indeterminate aria-label="Loading" /></template>ts
import { Component } from "@angular/core";import { GrassrootProgress } from "@grassroot/ui-angular"; @Component({ selector: "app-example", standalone: true, imports: [GrassrootProgress], template: ` <grassroot-progress [value]="64" aria-label="Upload progress" /> <grassroot-progress [indeterminate]="true" aria-label="Loading" /> `,})export class ExampleComponent {}ts
<script lang="ts"> import { Progress } from "@grassroot/ui-svelte";</script> <Progress value={64} aria-label="Upload progress" /><Progress indeterminate aria-label="Loading" />ts
import { Progress } from "@grassroot/ui-solid"; export function Example() { return ( <> <Progress value={64} aria-label="Upload progress" /> <Progress indeterminate aria-label="Loading" /> </> );}Installation
bash
pnpm dlx grassroot add ui/progressbash
npx grassroot@latest add ui/progressbash
yarn dlx grassroot add ui/progressbash
bunx grassroot add ui/progressAPI Reference
| Prop | Type | Default |
|---|---|---|
valueCurrent value. Ignored when `indeterminate`. | number | undefined | 0 |
max | number | undefined | 100 |
indeterminateUnbounded loading wave — no value reported. | boolean | undefined | false |
"aria-label"Accessible label for the bar. | string | undefined | — |
toneBrand colour of the bar/wave. | Tone | undefined | "accent" |