Get the insert URL, import statement and prop types documentation for components.
The id parameter can be either:
A component node ID (from getProjectXml Components section)
A code file ID (from getProjectXml CodeComponents section)
Use this tool when you want to:
Insert a component into the canvas via updateXmlForNode (get the insertUrl to use in XML)
Use insertUrl as-is for linked components (updates with source)
Add ?detached=true to insertUrl for detached/unlinked layers (editable, won't update). After inserting detached components, call getNodeXml on the parent to inspect the actual internal structure created.
Use an existing component in a code file (get the import statement)
See what props/attributes are available for a component, to use them in XML
read-only
Parameters
id *string
The ID of the component node or code file to get information for