Elements

Loading indicator

A spinning ring that shows an action is in progress, sized and colored by the surrounding text.

Usage

Label

Use the label prop to set the name announced by screen readers. The default is Loading.

<KLoadingIndicator label="Syncing accounts" />

Size

The indicator is as tall as the font size. Use a text-* class to change it.

<KLoadingIndicator class="text-base" />
<KLoadingIndicator class="text-xl" />
<KLoadingIndicator class="text-2xl" />
<KLoadingIndicator class="text-3xl" />

Color

The indicator takes the current text color. Use a text-* class to change it.

<KLoadingIndicator class="text-primary" />
<KLoadingIndicator class="text-secondary" />
<KLoadingIndicator class="text-muted" />

API

Props

PropTypeDefault
labelstring'Loading'
ui{ base? }
classstring
Copyright © 2026