Skip to main content

Add lines to truncate text in a comp

  • November 13, 2024
  • 3 replies
  • 26 views

Gregory_LC

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
  • 18 replies
  • November 13, 2024

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
  • 2 replies
  • November 13, 2024

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
  • 18 replies
  • November 14, 2024

Pleased you got it resolved.


Reply


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