Variants
Loading preview...

API Reference

Props for <CompanionRobot />

S

Motion score

Compositor-only

Category
3D Elements
Framework
React
Published
Dec 4, 2026
Dependencies
Variants

Companion Robot: a 3D robot for React

A white robot on two wheels breathes, blinks and pulses its orange lights. Its head turns toward the pointer and it waves now and then. On hover, the visor lifts to an inner screen where a logo traces itself and a name writes out.

Use Companion Robot as a friendly 3D robot on a landing page or an AI assistant page, with your own name on its screen. It's a free React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.

What is Companion Robot?

Companion Robot is a 3D robot for React: a ceramic-white robot with a dark visor, glowing eyes, two arms and two wheels, built part by part in three.js. It renders in a WebGL canvas through React Three Fiber, so it has real depth, light and shadow. Behind the visor sits a second screen that shows your brand name, which makes it a robot mascot for your product.

How Companion Robot works

The robot animation never fully stops while it's idle. The torso swells slowly (breathing, 0.6), the eyes blink every 5.2 seconds (blinkEvery), the lights pulse every 2.4 seconds (pulseSeconds) and the right hand waves every 9 seconds (waveEvery; 0 turns waving off). With followPointer on, the head turns up to 20 degrees (headFollow) toward the pointer, wherever it is on the page.

openOn sets what lifts the visor. On Hover, the default, it opens while the pointer is over the robot, and on touch screens a tap pins it open. On Scroll, the robot turns round once and lifts its visor as it reaches the middle of the screen. Never keeps it shut. Each time it opens, the logo traces its outline and the name, AXON by default, writes out above the tagline ROBOTICS.

The scene is built the first time it scrolls into view and only animates while it's on screen. With reduced motion turned on, the animation stops and the robot holds still.

Customization options

Change the six colors, the screen name and tagline, both fonts, the trigger, the size, the resting turn and every timing in the Customize panel, save a look as a variant, then install. size sets the width (480 px by default), the height follows at 1.25 times that, and it never grows wider than its parent. The fonts aren't bundled, so load Archivo and JetBrains Mono, or your own, in your app. Head follow doesn't run on touch screens.

Use cases

  • Product launches, with Launch Reveal: midnight navy and gold, it turns round and opens to an "AVAILABLE NOW" screen as you scroll to it.
  • AI and tech brands that want an interactive robot greeting visitors with their name on its screen.
  • Home security pages, with Night Patrol: a charcoal sentry with a red light that tracks you and never opens its visor.
  • Kids' apps and toys, with Playmate: yellow and blue, it waves every 4 seconds and opens to "LET'S PLAY".

FAQs