How to position the text on getter in figma?

There is a button in the figme. It contains text. Made it a component. Then I made another button that contains a shorter text. How to do so in the second button it was also in the center?
March 19th 20 at 08:57
2 answers
March 19th 20 at 08:59
Solution
It's very simple:
1. The text in the center
2. Centered in height (if you add the second line)

5c9c7fc0c1030412949726.png
March 19th 20 at 09:01
Don't understand what the difficulty is to do the same actions you did with the first button? In programs such as Figma is based on the principle of drag-and-drop drag + focus on constantly appearing auxiliary lines (vertical and horizontal) they are the same anchor point.
The problem is that when aligning a second button and the first line and it indents are not centered. If you know how to celebrate, then write. The point is that it should remain a component so I can color change the two buttons - Juliana_Stark commented on March 19th 20 at 09:04
@Juliana_Stark, show a screenshot though - Desiree.Fisher commented on March 19th 20 at 09:07
@Juliana_Stark, block the frame (kompanent), which must not be changed by the icon "lock" - Vesta_Tillman20 commented on March 19th 20 at 09:10

Find more questions by tags FigmaDesign