AsterUIDocsv1.0.2

Docs / Component reference

Progress, ProgressRing & Skeleton

Show a known amount of completed work with a bar or ring. Use an indeterminate state when the total is unknown.

Progress example

Install

sh
npx @fierst/ui@1.0.2 add progress

Registry dependencies: theme.

Exports from ./ui/progress: Progress, ProgressRing, Skeleton.

Download the registry source for progress 1.0.2.

API contracts

ts
export function Progress({
  value,
  max = 100,
  label,
  showValue = false,
  class: extraClass,
}: {
  value?: number;
  max?: number;
  label?: string;
  showValue?: boolean;
  class?: string;
})

export function ProgressRing({
  value,
  size = 52,
  strokeWidth = 5,
  showLabel = true,
  label = 'Progress',
  class: extraClass,
}: {
  value: number;
  size?: number;
  strokeWidth?: number;
  showLabel?: boolean;
  label?: string;
  class?: string;
})

export function Skeleton({
  width = '100%',
  height = '1rem',
  shape = 'rect',
  class: extraClass,
}: {
  width?: string;
  height?: string;
  shape?: 'rect' | 'pill' | 'circle';
  class?: string;
})