Skip to main content
Gregory_LC
Nov 13, 2024 10:52 AM UTC

Add lines to truncate text in a comp

I created a component with several texts, and I want some of them to be truncated at the second line.
It is impossible in the software, the property is not available when I have a style of text inside a component.
But It is available in a free box text.

3 replies

DameGeri
New Participant
Nov 13, 2024 12:05 PM UTC

Hi Gregory, if I’m understanding your question correctly, I’d suggest creating a component set with two variants: one with unrestricted text and another with text truncated after the second line. This way, you can place the main component on your page and easily switch between variants depending on your needs.

In the image attached, there’s two variations on design which are saved together as a component set. This way you can duplicate and select which variant you want to appear.

Hope this helps?

Greg32
New Member
Nov 13, 2024 4:14 PM UTC

Hi thx @DameGeri,
this is the issue I had.


It was an error of mine, because the text box was fixed and not in hug mode.
My bad

DameGeri
New Participant
Nov 14, 2024 11:00 AM UTC

Pleased you got it resolved.