@figma/code-connect
Advanced tools
Changelog
Code Connect v1.2.1 (23rd October 2024)
--exit-on-unreadable-files
flag to all commands to exit if any Code Connect files cannot be parsed. We recommend using this option for CI/CD.nestedProps
referencing a hidden layer would result in an error rendering Code Connectcreate
and publish
commandsChangelog
Code Connect v1.2.0
The interactive setup now offers AI support for accurate prop mapping between Figma and code components. Users will now be given the option to use AI during the setup process, which if chosen will assist in creating Code Connect files and attempting to accurately map your code to Figma properties.
Data is used only for mapping and is not stored or used for training. To learn more, visit https://help.figma.com/hc/en-us/articles/23920389749655-Code-Connect
example
function, in addition to JSXgetProps
on figma.instance()
which can be used to access props of a nested connected componentrender
on figma.instance()
which can be used to render a nested connected component dynamicallyprops
object, that can be accessed with getProps
in a parent componentnestedProps
(fixes https://github.com/figma/code-connect/issues/176)Changelog
Code Connect v1.1.4 (26th September 2024)
Changelog
Code Connect v1.1.3 (11th September 2024)
imports
was incorrectly not included in the TypeScript interfacemoduleResolution: "NodeNext"
imports
was incorrectly not included in the TypeScript interface (fixes https://github.com/figma/code-connect/issues/159)Changelog
Code Connect v1.1.2 (10th September 2024)
client
export used by the icon script (fixes https://github.com/figma/code-connect/issues/156)Changelog
Code Connect v1.1.1 (10th September 2024)
@figma/code-connect@1.1.0
npm package had an incorrect READMEChangelog
Code Connect v1.1.0 (10th September 2024)
Added support for documenting HTML-based frameworks (including Web Components, Angular and Vue), using the new html
parser. See the documentation for more information.
HTML support for Code Connect is in preview, and the API is liable to change during this period. Please let us know your feedback via GitHub Issues.
swiftPackagePath
configuration option to specify a custom path to a Package.swift
file to run Code Connect from.figma.nestedProps
can now be used in conjunction with figma.boolean
for conditionally hidden nested instances (fixes https://github.com/figma/code-connect/issues/118, https://github.com/figma/code-connect/issues/89)Changelog
Code Connect v1.0.6 (21st August 2024)
Changelog
Code Connect v1.0.5 (13th August 2024)