Been testing out the Figma Agent using component library and have found it struggles to use nested component properties. While guidance for agents talks about buildng reusable blocks, it seems like this doesn’t work well with page-level compositions we use. There are page pattern components the agent fails to use nest components within. Here’s how it explains its failures -Â
These are 2 of 3 patterns of failures agent was having building pages trying to use a page component and other compositional components.Â
Pattern 2 — Complex nested prop objects on layout components (7 "Required dependency not found" failures)
Higher-order layout components like Layout/Record page, Page header, and Tabs expanded failed with "Required dependency not found." These components have deeply nested prop structures:
Page header: 8 props including boolean toggles (has Avatar, has Detail, has Actions), variant selectors (Breakpoint, layout), and nested sub-instances (Avatar, Labels, Header actions, Page header details)
Record page: wraps Page header + Tabs + content area, requiring coordinated props across multiple nested instances
Tabs expanded: internal Tab children managed by Num. of tabs variant — the agent tried to inject <ComponentTab> instances as JSX children instead
The "required dependency" error suggests the renderer couldn't resolve internal sub-component references when the agent passed complex prop objects like pageHeader={{layout:"blocks", breakpoint:"> xs",...}}.Pattern 3 — Deeply nested prop object syntax (6 "strict parsing" failures)
Even when not hitting the slot or dependency issues, components with double-brace nested objects consistently fail strict parsing:
jsx code
<ComponentBox2 boxHeader={{headingStyle:"2",heading:"Staff..."}} />
<ComponentTile componentProps={{breakpoint:"> xs",state:"expanded",tile...}} />
The {{key:"value"}} syntax for nested component props hits parser limits, especially when combined with special characters like > xs in breakpoint values.
Â
Â
