D
D
Dima_click2019-07-12 16:11:05
Figma
Dima_click, 2019-07-12 16:11:05

How to make a text component correctly?

I created a text component and when I use a copy of it, when I narrow the text, the frame does not resize along with the text. How to fix it? I attached a picture 5d28864bdfd64389971494.jpeg
, but the usual text is resized normally -5d2886bfa372f848379189.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Proskurin, 2019-07-12
@mixail_fet

What do you need the "text" component for? Wouldn't it be easier to create a separate style parameter for each text style?
5d28877bb6281013398813.jpeg

O
Oleg Stepanov, 2019-07-12
@Oleyouhou

To begin with, for the "text" object inside the component, set Constraints: Left & Right, Top & Bottom.
In the "Text" panel, you can set the automatic resizing of the text block horizontally or vertically (button with ellipsis). One of these options might work:
This only works for text blocks. But the dimensions of the component instances will have to be changed manually. For example, it is currently impossible to make the button itself resize depending on the length of the text in Figma.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question