Skip to content
kitn AI/UI

Loader

kai-loader

An animated busy indicator that fits anywhere — buttons, toolbars, empty panels, or standalone skeletons — with twelve visual styles from a single variant attribute.

  • Shadow DOM
  • 12 variants
  • 3 sizes
  • Text label support

All props are plain HTML attributes — no binding layer required:

<kai-loader variant="dots" size="md"></kai-loader>
  • variantcircular for generic waits, wave/bars for audio or processing, text-shimmer for an AI “thinking” state.
  • sizesm inside a button, lg as a panel placeholder.
  • text — required for text-based variants (text-blink, text-shimmer, loading-dots); e.g. text="Thinking…".

The out-of-the-box circular spinner — no attributes needed.

Three-dot pulse — works well inside buttons or inline next to text.

Rhythmic wave — great for audio processing or streaming output.

Animates a label with a shimmer sweep — ideal for AI “Thinking…” states.

Retro blinking cursor — a good touch for developer tools or code-generation states.

PropertyTypeDefaultNotes
variant 'circular' The animation style: `'circular' | 'classic' | 'pulse' | 'pulse-dot' | 'dots' | 'typing' | 'wave' | 'bars' | 'terminal' | 'text-blink' | 'text-shimmer' | 'loading-dots'`. Defaults to `'circular'`.
size 'md' Loader size: `'sm' | 'md' | 'lg'`. Defaults to `'md'`.
text Label for the text-based variants.

This element wraps these SolidJS components — reach for them directly when you need finer control than the props expose.

Loader