tailwindcss 設定指定行數的 truncate [line-clamp]

# Using npm
npm install @tailwindcss/line-clamp

#or  Using Yarn
yarn add @tailwindcss/line-clamp
// tailwind.config.js
module.exports = {
  plugins: [
    require('@tailwindcss/line-clamp'),
  ],
}
<p class="line-clamp-2">
  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
</p>

ref: https://postsrc.com/code-snippets/how-to-multi-line-trucate-text-in-tailwindcss