Answers for "tailwind multiline truncate"

0

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>
Posted by: Guest on August-01-2021

Browse Popular Code Answers by Language