Henestrosa.dev
  • Inicio
  • Blog
ENEnglish

Blog

ArtículosCategoríasEtiquetas

Etiqueta · #React

  • Dynamic line clamp in React30 nov 2023

    Dynamic line clamp in React

    Since there is currently no way to set the value of the -webkit-line-clamp attribute to auto, I've created a component to dynamically clamp the number of lines displayed for a given text depending on the height of its container.

    ↗

© 2026 José Carlos López Henestrosa

No rastreo ni anuncios.