@twind/preset-line-clamp | @tailwindcss/line-clamp |
---|
>=1.0.0-next.27 <1.1.0 | >=0.3 <0.5 |
with @twind/core
Install from npm:
Add the preset to your twind config:
Usage with a script tag
with Twind CDN
Use the line-clamp-{n}
utilities to specify how many lines of text should be visible before truncating:
To remove any line-clamping, use line-clamp-none
:
A lineClamp
section is added to the theme. Its values are used for looking up the value. If no value is found the given parameter is used.