Tac UIv1.1.2

Indicator

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

Import

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

Playground

Interactively configure the Indicator props below.

tsx
<Indicator variant="linear" />

Linear

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

tsx
<Indicator variant="linear" />

Circular

Circular spinner. The size prop controls the diameter in dp; 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 color value.

tsx
<Indicator color="#ef4444" />
<Indicator color="#22c55e" />
<Indicator variant="circular" color="#f59e0b" />

API Reference

PropTypeDefaultDescription
variant"linear" | "circular""linear"Display style — horizontal bar or spinning circle.
sizenumber32Diameter in dp used for the circular variant. Stroke width scales automatically.
colorstringtheme.colors.pointColor value for the animated portion. Accepts any valid color string.