What you need
- A Figma link to the component
- A description of variants, states, or behavioral modes that aren’t visible in the current design
When to use
Create a component overview when you need to document:- Component anatomy and structure
- Layout variants (e.g., icon-only vs. with label)
- Style and color variants
- Interactive states
- Size, shape, and density options
- Behavioral modes (fill vs. hug, truncation, overflow)
What the agent generates
The agent evaluates your component and produces sections for each relevant aspect. Only applicable sections appear. A component without size variants won’t include a size section.| Section | What it covers |
|---|---|
| Component structure | Parts breakdown with required vs. optional elements |
| Type | Style and color variant matrix (e.g., Primary × Default, Secondary × Danger) |
| Interactive states | State matrix across variant styles |
| Size variants | Dimensional options with default indicated |
| Shape variants | Form factor options (rectangular, rounded) |
| Density variants | Spacing options (compact, default, spacious) |
| Width variants | Fill vs. hug behavior |
| Background context | Component on different surface colors |
| Tap / click target | Touch and pointer accessibility minimums |
| Overflow behavior | Truncation and content overflow rules |
Some properties like shape and density may be controlled via Figma variable modes rather than traditional variant properties. The agent checks for both automatically.
Example prompts
- Interactive control
- Container
- Selection control
Tips for better output
- List all states explicitly: the agent can see what’s in Figma, but it can’t infer states that aren’t represented (e.g., loading, expanded, error)
- Mention behavioral modes: fill vs. hug width, horizontal scroll, truncation rules, single vs. multi-select behavior
- Call out multi-dimensional variants: if your component has style × color, say so. The agent combines them into a matrix instead of separate sections. For example: “Primary, Secondary, and Tertiary styles each have Default and Danger colors”
- Note any defaults: which size, style, or variant is the default configuration
- Describe non-visible constraints: tap target minimums, aspect ratios, or overflow behavior that aren’t obvious from the design