Skip to main content
June 30, 2023
Question

How to export and import components from other .ts file

  • June 30, 2023
  • 4 replies
  • 2761 views

Hey guys. I am attempting to develop a plugin featuring multiple individual menus. I have noticed that incorporating all functions into a single code.ts file makes it rather difficult to manage. Apparently, Figma does not permit each plugin menu to possess its own *.ts file. Therefore, my resolution was to write each menu into separate .ts files and subsequently, export them, with the aim of importing them into the primary code.ts file. Unfortunately, this original plan of mine does not seem to be functioning as expected. Does anyone have a solution for this issue?

This topic has been closed for replies.

4 replies

tank666
June 30, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
huangyuAuthor
June 30, 2023

thank you so much. is there any template of this?

tank666
June 30, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
huangyuAuthor
July 6, 2023

Thank you so much.