Skip to content
StackD
Bot, the StackD component

Characters · Free

Bot

A round character whose eyes follow the cursor. Four bodies, four kinds of eyes, any colour.

Free on Gumroad: the download arrives in your inbox.

Details

Category
Characters
Plan
Free
Code
React + Tailwind, TypeScript · 382 lines
Files
Bot.tsx
Needs
React and Tailwind only
Agents
MCP server and shadcn registry

About

A bot whose eyes follow the cursor. The eyes sit on a sphere, so it looks round as it turns. Click or tap it and it squashes, bounces back and smiles for a moment. React + Tailwind, no other libraries. Respects reduced motion.

Install

With the shadcn CLI:

npx shadcn@latest add https://www.stackd.codes/r/bot.json

Or let your agent add it through the StackD MCP server:

claude mcp add --transport http stackd https://www.stackd.codes/mcp

Prompt for your agent

Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.

Add the StackD Bot component to this project. Use the StackD MCP server: call get_component with { "name": "bot" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles.

Use

  1. Copy Bot.tsx into your project (for example components/Bot.tsx).
  2. Use it:
import { Bot } from './components/Bot'

<Bot />
<Bot shape="hexagon" eyes="tall" color="#FFFFFF" eyeColor="#141310" />
<Bot onPoke={() => console.log('poked')} />

In Next.js the file already starts with 'use client'. In other React setups that line does nothing.

Options

PropDefaultWhat it does
size112Size in px
shape'circle''circle', 'squircle', 'pill', 'arch', 'drop', 'triangle', 'cloud', 'clover' or 'hexagon'
eyes'round''round', 'tall', 'square' or 'wide'
color'#111111'Body colour, any CSS colour
eyeColor'#FFFFFF'Eye colour, any CSS colour
follow0.8How far it turns towards the cursor, 0 to 1
lookA fixed direction instead of the cursor, { x, y } from -1 to 1
happyfalseHappy eyes
mood0How it feels, -1 (sad: the lids droop) to 1 (glad: the eyes smile)
mouth0How open its mouth is, 0 (closed) to 1 (wide open). Drive it with a voice's loudness and it talks
turnTurn it around in degrees: 180 shows its back, 360 its face again
poketrueClick or tap it: it squashes, bounces back and smiles. false to turn it off
onPokeCalled when it's clicked or tapped
withinA CSS selector: it only watches the cursor inside that element (a card, say)

Colours from StackD

White #FFFFFF · Ink #141310 · Wine #901919 · Olive #6C8544 · Ochre #BE9344 · Lilac #C9B8FF

Licence

You can use it in personal and commercial projects. Don't resell or share the component on its own.

Made by StackD · stackd.codes