---
name: component-spec-for-handoff
title: Write a component spec for handoff
description: A fill-in structure for describing one component to a developer: anatomy, sizes, states, behaviour, content rules and accessibility.
version: 1.0.0
source: https://inspireca.design/skills/component-spec-for-handoff
---

# Write a component spec for handoff

## Purpose
Describe ONE interface component completely enough that a developer can build it without asking what happens in the cases the design file does not show.

## What you need
- The component design, with its variants.
- The design tokens in use (spacing, type, colour roles), if the product has them.
- The platform or framework it will be built for.

## Steps
1. **Name and job.** One sentence on what the component is for, and one on when NOT to use it.
2. **Anatomy.** List the parts (for a text field: label, input, helper text, error text, leading or trailing icon). Mark each as required or optional.
3. **Sizes and spacing.** Height, padding, gaps between parts and minimum touch target. Use token names where they exist; otherwise give values.
4. **States.** For each state that applies, say what changes: default, hover, pressed, focused, filled, disabled, loading, error, success. If a state does not apply, write "not applicable" so it is clear it was considered.
5. **Behaviour.** What triggers each state change? What does the keyboard do (Tab, Enter, Escape, arrow keys)? Is anything animated, and for how long?
6. **Content rules.** Maximum length, what happens when text is too long (wrap, truncate or grow), and what is shown when there is no content.
7. **Accessibility.** The role, the accessible name and where it comes from, how errors are announced, contrast of text and borders in every state, and the focus indicator.
8. **Open questions.** Anything undecided, with an owner.

## Output
A document with the eight headings above, in that order. Use tables for sizes and states. Keep sentences short.

## Rules
- Do not invent values. If a size, colour or duration is not in the design, list it under open questions.
- Describe behaviour in terms of what the person does and what they then see.
- One component per spec. If you find yourself describing a second one, stop and start a second spec.
- State the version of the design the spec was written from.
