0Views
0Copies
API Reference
Props for <CompanionRobot />
| Prop | Type | Default | Description |
|---|---|---|---|
| shellColor | string | "#f4f4f1" | The ceramic head, torso, arms and wheel covers. |
| metalColor | string | "#2b2c30" | Joints, neck and the rings around the sensors. |
| rubberColor | string | "#151516" | Tyres and cables. |
| glassColor | string | "#060608" | The display glass the eyes glow on. |
| ledColor | string | "#ff8a1f" | Eyes, LED strips, the wheel rings and the logo on the inner screen. |
| screenColor | string | "#050506" | The inner screen behind the logo and name, seen when the visor lifts. |
| Prop | Type | Default | Description |
|---|---|---|---|
| screenTitle | string | "AXON" | The name the inner screen writes out when the visor lifts; a long one shrinks to fit. |
| screenTagline | string | "ROBOTICS" | The small line under the name on the inner screen. |
| titleFont | FontValue | {"fontFamily":"Archivo","fontWeight":900} | The name's family and weight on the inner screen. The component doesn't load the font: add it to your app. |
| taglineFont | FontValue | {"fontFamily":"JetBrains Mono","fontWeight":500} | The tagline's family and weight on the inner screen. The component doesn't load the font: add it to your app. |
| Prop | Type | Default | Description |
|---|---|---|---|
| openOn | 'hover' | 'scroll' | 'none' | "hover" | Hover lifts the visor while the pointer is on the robot (a tap on touch); Scroll turns it round once and lifts the visor as it scrolls to the middle of the screen. |
| openSpeed | number | 0.35 | Seconds the visor takes to settle as it opens or shuts on hover; lower snaps faster. |
| size | number | 480 | Width; the height is 1.25 × the width, and it never grows past its parent. |
| turn | number | -20 | The angle it rests at: 0 faces you, −20 is a three-quarter view. |
| headFollow | number | 20 | How far the head turns toward the pointer; 0 holds it still. |
| waveEvery | number | 9 | Seconds between greeting waves of the right hand; 0 never waves. |
| waveSpeed | number | 100 | How fast the hand waves side to side during a greeting. |
| blinkEvery | number | 5.2 | Seconds between blinks. |
| pulseSeconds | number | 2.4 | Seconds for one pulse of the LEDs; lower is faster. |
| ledGlow | number | 100 | Brightness of the eyes, LED strips and the screen’s light; 0 switches them off. |
| breathing | number | 0.6 | How much the torso swells while idle; 0 for none. |
| Prop | Type | Default | Description |
|---|---|---|---|
| followPointer | boolean | true | Turns the head toward the pointer anywhere on the page; off keeps it looking ahead. |
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#
It's a robot drawn live on the page in WebGL, so it can move, catch the light and react to the visitor. Companion Robot turns its head toward the pointer, waves and opens its visor to show your name.
Yes. The name and tagline are settings, and the logo takes the light color. The logo mark itself is drawn in code, so to use your own mark, replace it in the component file.
Yes. Companion Robot is a free component, so you don't need a paid plan to use it, and anything you install stays yours.
It's a React component for Next.js, Vite and Astro with Tailwind CSS v4. In a JavaScript project, the CLI converts
it to a .jsx file.