Tac UIv1.1.2

Indicator

An indeterminate loading animation available as a linear bar or circular spinner.

Import

tsx
import { Indicator } from '@tac-ui/web';

Playground

Interactively configure the Indicator props below.

tsx
<Indicator variant="linear" />

Linear

Horizontal indeterminate progress bar that slides a gradient segment across the track width, suitable for page-level loading states.

tsx
<Indicator variant="linear" />

Circular

Circular spinner using a conic-gradient mask technique. The size prop controls the diameter in pixels; stroke width scales proportionally.

tsx
<Indicator variant="circular" size={24} />
<Indicator variant="circular" size={32} />
<Indicator variant="circular" size={48} />

Custom Colors

Use the color prop to customize the animated portion with any CSS color value or design token variable.

tsx
<Indicator color="var(--error)" />
<Indicator color="var(--success)" />
<Indicator variant="circular" color="var(--warning)" />

API Reference

PropTypeDefaultDescription
variant"linear" | "circular""linear"Display style — horizontal bar or spinning circle.
sizenumber32Diameter in pixels used for the circular variant. Stroke width scales automatically.
colorstringvar(--point)CSS color value for the animated portion. Accepts any valid CSS color or token variable.
classNamestring-Additional CSS class names applied to the root element.