
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.jsonOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt 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
- Copy
Bot.tsxinto your project (for examplecomponents/Bot.tsx). - 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
| Prop | Default | What it does |
|---|---|---|
size | 112 | Size 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 |
follow | 0.8 | How far it turns towards the cursor, 0 to 1 |
look | A fixed direction instead of the cursor, { x, y } from -1 to 1 | |
happy | false | Happy eyes |
mood | 0 | How it feels, -1 (sad: the lids droop) to 1 (glad: the eyes smile) |
mouth | 0 | How open its mouth is, 0 (closed) to 1 (wide open). Drive it with a voice's loudness and it talks |
turn | Turn it around in degrees: 180 shows its back, 360 its face again | |
poke | true | Click or tap it: it squashes, bounces back and smiles. false to turn it off |
onPoke | Called when it's clicked or tapped | |
within | A 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