Skip to content
coatx
Esc
↑↓navigate↵open⌘Jpreview
On this page

Progress

Progress bar track, animated indicator, label, and tabular value recipes.

Compiling StyleX

Usage

import {
  Progress,
  ProgressIndicator,
  ProgressTrack,
} from "@ilha/ui-sdk/progress";
import { progress, progressIndicator, progressTrack } from "coatx/progress";

export const UploadBar = () => (
  <Progress aria-label="Upload" value={60} max={100} {...progress()}>
    <ProgressTrack {...progressTrack()}>
      <ProgressIndicator {...progressIndicator()} />
    </ProgressTrack>
  </Progress>
);

Exports (coatx/progress)

Export Description
progress(options?) Root wrapper
progressTrack(options?) Background rail track
progressIndicator(options?) Filled progress bar
progressLabel(options?) Label slot
progressValue(options?) Tabular percentage value slot
progressStyles Compiled StyleX style map

Was this page helpful?