DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use small robot avatars in a chat or user list with Robot Heads

Drop a compact robot head into list rows using the antenna-free small size option.

Short answer: Run npm install robot-heads in the project; then Render RobotHead in each list row with antenna={false} and a small size; Pass your own aria-label if the default state label does not describe the bot. All steps.

Who it is forA developer building a list of agents or bots, such as a sidebar of chat assistants, where each row needs a small avatar.

The problemA full-size robot with an antenna wastes space in a small avatar slot, and list layouts can clip animations.

The outcomeCompact robot avatars in each row that fill their box, with a clear accessible label for screen readers.

What you need first

  • A React project on React 18 or newer, since React is a peer dependency
  • Node.js with npm, or pnpm if you plan to work on the library source
  • A way to map your agent's status values to the nine states the library supports

Steps

  1. Run npm install robot-heads in the project.
  2. Render RobotHead in each list row with antenna={false} and a small size.
  3. Pass your own aria-label if the default state label does not describe the bot.
  4. Check that the row container does not use overflow: hidden around the avatar, since hops would be cut off.
  5. Scroll the list and confirm the avatars sit flush with the text in each row.

Prompt for your agent

In the React project at <project path>, install robot-heads and render a list of agent avatars using RobotHead with antenna={false} and a small size. Expected output: a list component where each avatar keeps its state and has an aria-label. Verify that no parent element in the list uses overflow: hidden around the avatar.

Caveat. The README notes that antenna={false} only drops the stem and light, so the bot still needs the default knob on top and the square or circle shape will look best at small sizes.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for fayazara/robot-heads and "Use small robot avatars in a chat or user list"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer