# Attendant droid

A plated humanoid attendant with a fixed faceplate and vocoder grille, four etiquette poses, and plating levels that strip the body back to its exposed loom.

> For the complete index, see [llms.txt](https://robocn.dev/llms.txt). A Markdown version of any page is available by appending `.md` to its URL or by sending an `Accept: text/markdown` header.

## Install

```bash
bunx --bun shadcn@latest add https://robocn.dev/r/attendant-droid.json
```

Registry item: `attendant-droid` · [`https://robocn.dev/r/attendant-droid.json`](https://robocn.dev/r/attendant-droid.json)

## Notes

- Front elevation is the drawing it always had. A humanoid drawn from the front says nothing about its own depth: off that axis the torso, pelvis and head are boxes and the limbs are tubes set through the body, at the same joint angles the pose already solved.
- Heavier and fully plated where the protocol droid is slim and jointed; the two share the collection prop contract.
- An original attendant archetype rather than a character replica.

## Usage

```tsx
import { AttendantDroid } from "@/components/ui/attendant-droid"

<AttendantDroid pose="present" plating="partial" headAngle={18} speaking />
```

## Props

| name | type | default | description |
| --- | --- | --- | --- |
| `view` | `"plan" | "front" | "profile" | "iso"` | `"front"` | Where the camera stands. One droid, four projections: straight down, straight on, side elevation, or three-quarter from above. |
| `pose` | `"attention" | "bow" | "present" | "alarm"` | — | Etiquette posture. Omit and the behaviour works through them. |
| `headAngle` | `number` | — | Head rotation in degrees, clamped to −45..45. Omit and it turns to whoever it is addressing. |
| `plating` | `"full" | "partial" | "bare"` | `"full"` | Body covering. Partial keeps the chest plate; bare exposes the torso and limb looms. |
| `build` | `"slim" | "standard" | "heavy"` | `"standard"` | Frame width. Scales limbs and torso across only — every joint keeps its height, so poses are unchanged. |
| `face` | `"grille" | "visor" | "lamps"` | `"grille"` | Faceplate treatment: paired optics, a full visor band, or oversized lamps. |
| `hands` | `"fingers" | "clamp" | "mitt"` | `"fingers"` | End effector on each arm. |
| `collar` | `boolean` | `true` | Draw the raised collar around the neck. |
| `speaking` | `boolean` | — | Light the vocoder grille. Omit and it lights while the droid is talking. |
| `behavior` | `"attend" | "fret" | "idle" | "static"` | `"attend"` | Attend works the room a courtesy at a time; fret alternates alarm and apology with the head whipping about; idle waits politely. |
| `speed` | `number` | `0.3` | Poses per second. |
| `animate` | `boolean` | `true` | Off parks the machine at phase and stops rendering. A reduced-motion preference does the same. |
| `paused` | `boolean` | `false` | Freeze where it stands. |
| `phase` | `number` | `0` | Seconds of offset, so a row of machines breaks step. |
| `interactive` | `boolean` | `true` | The head turns to the pointer, and a click takes it on to its next pose. `onPoseChange` reports either way. |
| `variant` | `"solid" | "outline" | "blueprint" | "wire"` | `"solid"` | How the machine is painted. Geometry never changes between variants. |
| `size` | `"xs" | "sm" | "md" | "lg" | "xl" | number` | `"md"` | Rendered width in pixels, or a step on the scale. |
| `showGround` | `boolean` | `true` | Draw the contact line or shadow beneath the droid. |
| `signal` | `"idle" | "ready" | "warning"` | — | Status-lamp state using neutral, accent, or shell colour; each component documents its visual default in the demo. |
| `label` | `string` | — | Optional technical caption under the drawing. |
| `color` | `string` | `var(--robot-shell)` | Body panels — the colour the machine reads as. |
| `accent` | `string` | `var(--robot-accent)` | Status colour: tip light, live tool, readouts. |
| `metal` | `string` | `var(--robot-metal)` | Bare machined parts: collars, bolts, tool bodies. |
| `dark` | `string` | `var(--robot-dark)` | Cast joints, base, shadow side. |
| `palette` | `Partial<RobotPalette>` | — | Override any subset of roles at once, including glow and grid. |

## Source

- `src/components/ui/attendant-droid.tsx`
