Skip to main content
Question

Buttons and Modals: Should I use Frames?

  • November 4, 2022
  • 3 replies
  • 2625 views

Tony_Palombo

Should I use Frames or shapes such as rectangles, to create button and modal components in Figma?

This topic has been closed for comments

3 replies

zachtalogy

Use Frames. I find rectangles and other shapes should really only be used in vector work or cases where you do not want content to exist inside the shape. In the case of a button, it will have content, such as an icon or label, and the same goes with modals. Frames are more appropriate for this case.

If you are coming from something like Sketch as I did, we’re used to the idea of creating a rectangle, maybe adding a label, and grouping the two to make a button. I find groups are handy in a few cases, but frames again are more appropriate. Instead of needing a rectangle, text layer, and group, all you need is a text layer inside a frame.

Figma

This starts to get extra powerful when taking advantage of the auto layout frames. But perhaps that’s for another time.


Tony_Palombo

Thank you for the insight @zachtalogy!


  • 0 replies
  • December 4, 2022

This topic was automatically closed after 30 days. 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