Request: Map classes/ids to component namesSee original GitHub issue
Caveat that I have NO idea how complex this would be, but it’d be amazing if there was an option that when checked, was aware of component names eg:
main-nav, and when it encountered an ID or class in the code that matched that name, inserted the matching component in it’s place.
- Created 4 years ago
Top GitHub Comments
Hey everyone - apologies for the delay here! Busy doing a lot of work in prep for holidays but this is definitely very interesting
Once I can find a moment, I need to look into if figma plugins can register components (I recall them not being able to but this may have changed)
Also worth pointing out - we gladly take pull requests / contributions if you would like to add this feature in yourself!
Just want to add an update here as this thread is still top of mind.
One of the next significant things we want to do with this plugin is integrate with JSX Lite to read and generate code from.
This could also map well to Figmas components system so I think there is an opportunity there to tackle these two things at a time, so currently focusing on getting that project to a stable v1 and then will be looking deeper here again