Skip to main content

Library of interactions

  • September 28, 2021
  • 2 replies
  • 711 views

J_Yun1

Currently, you can only duplicate and use interactions made between variants within the component.

If you rig up any interactions (open overlay, etc) outside of the component, it does not translate into other projects that uses the component library.

For example, I have a “Expand More” icon button at the end of my data table row component. I want this to trigger a menu (also a component). However, when another team member syncs my library and uses this data table, the icon does not trigger the interaction because it is technically a project-specific interaction.

Second method (workaround) I tried was to create two-state variants with one being default and the other being menu-active. However, this creates a z-index issue since the icon is nested in each table row.

In order for this to work, each person who uses my library will have to recreate this interaction within their own project file.

Suggestion: It would be awesome if we could publish the library interactions “open overlay, etc” made anywhere in the project as a duplicatable interaction for other project files.




This topic has been closed for comments

2 replies

J_Yun1
  • Author
  • 12 replies
  • September 28, 2021

I guess another workaround would be copying the entire component set including the “open overlay” interaction into each project, then duplicating from there—which feels… not as smooth as everything else on Figma.


  • 0 replies
  • October 28, 2021

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