Skip to content
Component detail view

AI Orb Face

The portfolio’s animated agent mascot, with eight poses, reactive gaze and a waveform when it talks.

Last updated: November 28, 2026

Installation

Install CLI
npx smoothui-cli add ai-orb-face

Features

  • Eight poses: idle, listening, thinking, speaking, paused, review, done and blocked
  • Framerate-independent pointer gaze, reset on pointer exit or hidden tabs
  • Speaking adds a synthetic waveform. The demo does not use the microphone or speech recognition.
  • The orb stays pink and uses a clipped CSS material without a WebGL canvas
  • Existing custom expression, amplitude and color props still use the original renderer; an explicit pose opts into the portfolio renderer

Usage

useOrbFaceTurn takes the mascot through listening, thinking, and speaking before settling on the chosen outcome.
companion.tsx
"use client";

import type { AIState } from "@/components/smoothui/ai-core";
import AIOrbFace from "@/components/smoothui/ai-orb-face";

export const Companion = ({ state }: { state: AIState }) => (
  <AIOrbFace aria-label={`Assistant is ${state}`} size={96} state={state} />
);

Turn the gaze off where many instances would compete for attention:

companion.tsx
<AIOrbFace gaze={false} size={32} state={state} />

Accessibility

Reduced Motion

Uses useReducedMotion. Reduced motion disables gestures and pointer tracking, and keeps the speech waveform static. Pose changes still communicate state.

Labelling

Without aria-label the character is aria-hidden. When it is the only status indicator, pass a label that states the state in words — an expression is not available to a screen reader.

Props

Created by

Improved by

Edu Calvo's avatar