oxyn

Dot Sweep: a loader for searching

A dot sphere with one lit column sweeping round like radar. A React loader that shows your AI agent is searching. Install with shadcn.

Installation

Install with the shadcn CLI, or copy the component file. It only needs React.

npx shadcn@latest add https://oxyn.space/r/dot-sweep.json

Usage

Updates live with the parameters you set.

import { DotSweep } from "@/components/dot-sweep";

export function Thinking() {
  return (
    <DotSweep />
  );
}

Props

PropTypeDefaultDescription
pattern"rings"|"fibonacci"|"grid""rings"How the dots are laid out on the sphere.
dotSizenumber3Diameter of the front dots in px. Back dots scale down automatically.
densitynumber12Rows of dots. Higher means more dots.
sizenumber160Width and height of the orb in px.
durationnumber2.4Seconds for the sweep to go once around the orb.
direction"left"|"right""left"Which way the sweep turns around the vertical axis.
tiltnumber18Lean toward the viewer in degrees, so the top shows.
backOpacitynumber0.2Opacity of the furthest dots. Front dots are always fully opaque.
colorstring"#e4e4e7"Dot color.
pausedbooleanfalseCoast to a stop on the current frame without unmounting. Turning it off eases back up to speed.
labelstring"Thinking"Accessible name; the wrapper is role="status".
className / style——Spread onto the wrapper div, along with any other div props.

Switch states

Dot Sweep is one of the animations in Dot Globe. Use the group when the agent's state changes, and it morphs between them.

More states