tailwind multiline truncate
npm install @tailwindcss/line-clamp
// tailwind.config.js
module.exports = {
// ...
plugins: [
// ...
require('@tailwindcss/line-clamp'),
],
}
// line-clamp-{n} where n in number of lines
<p class="line-clamp-3">
Here's a block of text from a blog post that is very long
</p>