structyl

Circular Progress

stable

A circular progress indicator with determinate and indeterminate modes.

Basic usage

Examples

Sized with label

Customize track size and embed a label inside the circle.

Progress states

Use determinate values for known work and null for indeterminate loading.

Semantic colors

Color prop sets the fill color of the circular progress arc.

Features

  • Determinate + indeterminate.
  • Configurable size and stroke.

Installation

bash
pnpm dlx structyl add circular-progress

API Reference

CircularProgress

A circular progress / spinner.

PropTypeDefault
valuenumber | null

Progress value; null for indeterminate.

maxnumber

Maximum value.

100
sizenumber

Diameter in px.

40
strokeWidthnumber

Ring thickness.

4
Circular Progress | structyl