Ai Blob Warp

AiBlobWarpAvatar is a circular, animated avatar frame backed by Paper Design’s Warp shader. It pauses shader motion when outside the viewport or when the user prefers reduced motion, while accepting standard div attributes and Warp customization.

Ai Blob Warp
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add @cult-ui/ai-blob-warp

Requires @cult-ui in the registries of your components.json (shadcn adds official directory namespaces automatically).

Usage

usage.tsx
import { AiBlobWarpAvatar } from "@/components/ui/ai-blob-warp"export function Example() {  return <AiBlobWarpAvatar aria-label="AI assistant" />}
  • Use as a decorative AI assistant, bot, agent, or generative-feature avatar.
  • Use in chat interfaces, AI toolbars, command palettes, and assistant status indicators.
  • Use when you want a compact animated identity element without supplying an image asset.
  • Avoid relying on the animation alone to communicate status; provide adjacent text or an accessible label when needed.

Examples

AI assistant avatar

A labeled avatar for a conversational assistant.

ai-assistant-avatar.tsx
import { AiBlobWarpAvatar } from "@/components/ui/ai-blob-warp"export function AssistantAvatar() {  return <AiBlobWarpAvatar aria-label="AI assistant" />}

Custom size and Warp speed

Uses div classes and a custom shader speed while preserving viewport and reduced-motion handling.

custom-size-and-warp-speed.tsx
import { AiBlobWarpAvatar } from "@/components/ui/ai-blob-warp"export function CustomAssistantAvatar() {  return (    <AiBlobWarpAvatar      aria-label="Design assistant"      className="size-12"      warpProps={{ speed: 0.6 }}    />  )}

Custom Warp colors

Overrides the default shader palette with a warmer gradient.

custom-warp-colors.tsx
import { AiBlobWarpAvatar } from "@/components/ui/ai-blob-warp"export function WarmAssistantAvatar() {  return (    <AiBlobWarpAvatar      aria-label="Warm color assistant"      warpProps={{        colors: ["#f97316", "#ef4444", "#ec4899", "#8b5cf6"],      }}    />  )}

API reference

PropTypeDefaultDescription
classNamestring | undefinednullOptional CSS class names merged with the component’s default circular avatar styles.
warpPropsPartial<WarpProps> | undefinednullOptional Paper Design Warp props. They are merged after the component defaults, except speed is controlled by viewport visibility and reduced-motion state. The supplied speed becomes the active speed when motion is enabled; when disabled, speed is forced to 0.
childrennevernullNot supported; the component omits children from its public props type.
HTMLDivElement propsReact.ComponentProps<"div">nullAll standard div attributes are accepted, except children. This includes id, style, role, data attributes, event handlers, and accessibility attributes such as aria-label.

Accessibility

  • The animated shader wrapper is marked aria-hidden because it is decorative.
  • The component does not provide an accessible name itself; add aria-label, aria-labelledby, or an adjacent text label when it conveys identity or meaning.
  • The shader speed is set to 0 when prefers-reduced-motion is enabled.
  • The shader speed is set to 0 when the avatar is sufficiently outside the viewport, reducing unnecessary off-screen animation.
  • The default decorative wrapper uses pointer-events-none and does not interfere with interaction.

Docs written by openai:gpt-5.6-luna from the registry source.

Use with Coding Agent

Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.

prompt.md
Use the "Ai Blob Warp" component (cult-ui/ai-blob-warp) from its shadcn registry.1. Install it with: npx shadcn@latest add @cult-ui/ai-blob-warp2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: className, warpProps, children, HTMLDivElement props.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { AiBlobWarpAvatar } from "@/components/ui/ai-blob-warp"export function Example() {  return <AiBlobWarpAvatar aria-label="AI assistant" />}```

Files & dependencies

  • registry/default/ui/ai-blob-warp.tsx
dependencies@paper-design/shaders-reactmotion

Looks similar, elsewhere