Skip to main content

Add Tag feature to selected items

  • December 19, 2021
  • 2 replies
  • 1627 views

davvit_o

I would like a feature to Tag a group of selected items. This would be supper beneficial when developing plugins; as it communicates what the design intention is for those collection of items.

eg. A button can be designed using a frame and a text in figma. I can select these two items and tag them button. Then when I parse the figma.current.selection items I want to get the tag as follows.
image

The plugin I am working on attempts to generate OS/Web native components based on design. So for example if user is using MatrialUI in there react web app the plugin will generate for that selection above using the tag ‘button’.

If this is something I can create a branch for in github let me know.

This topic has been closed for replies.

Gleb
  • Power Member
  • December 19, 2021

I’m pretty sure what you are looking for is setting/reading plugin data: setPluginData · Figma Developers — you can set any data you want to any elements you want and then read or change it whenever you want.


  • January 18, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings