CLI previewInstall commands shown on this site are not released yet.

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/progress
bash
npx grassroot@latest add ui/progress
bash
yarn dlx grassroot add ui/progress
bash
bunx grassroot add ui/progress

API Reference

ProgressProps
PropTypeDefault
valueCurrent value. Ignored when `indeterminate`.number | undefined0
maxnumber | undefined100
indeterminateUnbounded loading wave — no value reported.boolean | undefinedfalse
"aria-label"Accessible label for the bar.string | undefined
toneBrand colour of the bar/wave.Tone | undefined"accent"