Skip to main content
Clever Ops

Ink Dots

Three ink dots with a liquid squash-and-merge cadence, a scoped SVG goo filter fuses them as they meet, then they rebound apart. A working ellipsis, tiny and cheap. Pure CSS animation.

Preview & code

Loading Ink Dots preview

Installation

pnpm dlx shadcn@latest add @cleverui/loader-ink-dots

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { LoaderInkDots } from '@/components/ui/loader-ink-dots'
Exampletsx
import { LoaderInkDots } from '@/components/ui/loader-ink-dots'

export default function LoaderInkDotsDemo() {
  return (
    <div className="mx-auto flex min-h-[360px] max-w-md flex-col items-center justify-center gap-8 px-6 py-20">
      <div className="flex w-full max-w-sm flex-col gap-6 rounded-2xl border border-border/60 bg-card px-6 py-8">
        <div className="flex items-start justify-between gap-4">
          <div className="min-w-0">
            <p className="font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground">
              Draft reply
            </p>
            <p className="mt-2 text-sm font-medium tracking-tight text-foreground">
              Meridian Logistics · RFP follow-up
            </p>
          </div>
          <LoaderInkDots size={8} label="Composing draft" />
        </div>
        <div className="space-y-2 border-t border-border/60 pt-5">
          <p className="text-sm leading-relaxed text-muted-foreground">
            Pulling three sources, last bid sheet, Q1 SLA notes, and the
            warehouse tour transcript…
          </p>
          <p className="font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground">
            3 attachments · ~12s
          </p>
        </div>
      </div>
    </div>
  )
}

API reference

LoaderInkDots accepts the following props.

PropTypeDefaultDescription
sizenumber10dot diameter in px
labelstring'Loading'sr-only status text
speednumber1animation speed multiplier

…plus everything from React.HTMLAttributes<HTMLDivElement>: className, event handlers, aria attributes and the rest pass straight through.

Frequently asked questions

How do I install the Ink Dots component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/loader-ink-dots`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Ink Dots require?

Ink Dots has no npm dependencies beyond React and Tailwind CSS itself, so there is nothing extra to install or keep updated.

Can I theme Ink Dots to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services