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.

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?

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

1 Like

Pleased you got it resolved.