nalarx-ui
Components

Dots loader

The 3×3 dot wave NalarX shows while an agent is working.

bunx shadcn@latest add @nalarx/dots-loader

Usage

Use it for agent work in progress (chat status, a running row in history). For a page or a control that is loading, use Spinner or Skeleton.

import { DotsLoader } from "@/components/ui/nx/DotsLoader";

<span className="inline-flex items-center gap-2">
  <DotsLoader /> Thinking
</span>

Sizes

Thinking
Thinking

Props

PropTypeDefault
dotnumber4Side of one dot in px. The grid is three dots plus two gaps (1.5px, or 1px under 4px dots).
classNamestring

Accessibility

Decorative (aria-hidden): put the status text beside it. The dots stand still under reduced motion.

Replaces

DotsLoader in both apps (components/ui/DotsLoader.tsx) and the .nx-dots-loader rule plus @keyframes nx-pixel-on in globals.css.

On this page