Skip to content

Progress

Bar showing completion of a task.

Installation

bun add @xerobi/ui
import { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue } from "@xerobi/ui/progress"

This component is client-side. In Astro, hydrate it with a client directive.

Examples

Default

x
import { Progress } from "@xerobi/ui/progress"

export function ProgressDefault() {
  return <Progress className="w-64" value={62} />
}

API reference

Progress

Also accepts every prop of Base UI Progress.

No props of its own.

ProgressIndicator

No props of its own.

ProgressLabel

No props of its own.

ProgressTrack

No props of its own.

ProgressValue

No props of its own.

Styling hooks: [data-slot="progress"], [data-slot="progress-track"], [data-slot="progress-indicator"], [data-slot="progress-label"], [data-slot="progress-value"].

Search documentation

Search pages, components and blocks.