AgentPawn

components/agent/Pawn.vue

The "Agent" pixel pawn — composes a base body (awake or sleeping) with a state decoration floated above the head (binary while working, red alert on error). Art renders via UxPixelArt, so it is theme-aware (--px-* vars flip under .dark).

States
working
idle
errored
needs-input
angel
Scenarios
Waiting for your input
needs-input + bubble slot
unknown state
Theme contexts
Usage context
q-nuxt-layer ›Claude Code
components/agent/Pawn.vue

Usage

<AgentPawn state = "angel" :size = "96" :decorations = "true" > Content here </AgentPawn>

Props

PropTypeDefaultDescription
stateString'angel'One of working, idle, errored, needs-input, angel. Composes body + decoration from assets/svgs/pixel-pawns/; working renders the animated AgentBinary component, idle the sleeping body + zzz. Angel halo art is pending — renders the body alone with a dev warning.
sizeNumber | String96Pawn width; number → px. Height scales automatically.
decorationsBooleantrueSet false to suppress the floating above-head decorations (binary/zzz/alert) for inline and table contexts where they would overflow the row. The state still selects the body art.

Slots

SlotDescription
defaultConsumer content anchored above the head — e.g. the needs-input speech bubble.

Qpoint Brand Style Guide