instance.swapComponent(component) points an instance at another component, as in Figma, through the graph's shared swap that the editor's variant picker uses. It asserts editability, so an instance inside a read-only library definition cannot be swapped, and joins the instance surface check against @figma/plugin-typings. |
||
|---|---|---|
| .. | ||
| cli | ||
| sdk | ||
| ai-chat.md | ||
| byok-provider-compatibility.md | ||
| collaboration.md | ||
| index.md | ||
| jsx-renderer.md | ||
| mcp-server.md | ||
| native-api.md | ||