All Projects β†’ jhta β†’ tailwindcss-truncate-multiline

jhta / tailwindcss-truncate-multiline

Licence: other
Tailwind CSS plugin to generate truncate multiline utilities

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tailwindcss-truncate-multiline

Shave
πŸ’ˆ Shave is a 0 dep JS plugin that truncates text to fit within an element based on a set max-height ✁
Stars: ✭ 2,113 (+2196.74%)
Mutual labels:  truncate, ellipsis
v-clamp
Vue directive plugin for text truncate
Stars: ✭ 15 (-83.7%)
Mutual labels:  truncate, ellipsis
shear.js
βœ‚οΈtruncate text across DOM nodes
Stars: ✭ 61 (-33.7%)
Mutual labels:  truncate, ellipsis
ngx-line-truncation
An Angular line truncating solution. Truncate text block by given line number and add ellipsis to the end.
Stars: ✭ 13 (-85.87%)
Mutual labels:  truncate, ellipsis
kickstart
Ruby on Rails application templates
Stars: ✭ 61 (-33.7%)
Mutual labels:  tailwind
admin-one-vue-tailwind
Free Vue.js 3.x Tailwind 3.x admin dashboard template with dark mode. Vite builds. Pinia state. Laravel integration available
Stars: ✭ 742 (+706.52%)
Mutual labels:  tailwind
tailwindcss-jit-rails
An experiment with tailwindcss-jit and the asset pipeline
Stars: ✭ 32 (-65.22%)
Mutual labels:  tailwind
vitailse
Opinionated Vite starter template with TailwindCSS
Stars: ✭ 95 (+3.26%)
Mutual labels:  tailwind
tailwind-color-alpha
Automatic alpha variants for your Tailwind CSS colors based on your opacity config
Stars: ✭ 21 (-77.17%)
Mutual labels:  tailwind
tailwindcss-fluid-type
A plugin that makes the use of Fluid Type a breeze.
Stars: ✭ 91 (-1.09%)
Mutual labels:  tailwind
simple form-tailwind
A basic rails generator for adding a simpleform config for tailwindCSS based forms
Stars: ✭ 42 (-54.35%)
Mutual labels:  tailwind
create-react-app-tailwindcss
Create React apps with no build configuration, extended with TailwindCSS and PurgeCSS
Stars: ✭ 30 (-67.39%)
Mutual labels:  tailwind
shopify-foundation-theme
Modern Shopify theme using Shopify Theme Lab, Liquid, Vue and Tailwind CSS 🎨
Stars: ✭ 195 (+111.96%)
Mutual labels:  tailwind
cra-tailwindcss-in-js
Integrate Tailwind CSS in a Create React App setup using css-in-js solutions
Stars: ✭ 35 (-61.96%)
Mutual labels:  tailwind
create-next-pwa
⚑️ Set up Next.js Progressive Web App with `npx create-next-pwa`
Stars: ✭ 59 (-35.87%)
Mutual labels:  tailwind
Reactirator
A desktop application to create and manage React.js applications easily.
Stars: ✭ 111 (+20.65%)
Mutual labels:  tailwind
vuejs-tailwindcss-portfolio
A simple multipage and responsive Vue.js & Tailwind CSS portfolio theme with dark mode.
Stars: ✭ 100 (+8.7%)
Mutual labels:  tailwind
Cyca
Web-based bookmarks and feeds manager
Stars: ✭ 15 (-83.7%)
Mutual labels:  tailwind
vite-vue3-tailwind
Boilerplate at vue 3 whit firebase, vue notus, typesctip, vite, tailwind
Stars: ✭ 21 (-77.17%)
Mutual labels:  tailwind
taro-plugin-tailwind
Taro ζŽ₯ε…₯ windicss / tailwindcss 插仢
Stars: ✭ 78 (-15.22%)
Mutual labels:  tailwind

Truncate Multiline Plugin for Tailwind CSS

Installation

npm install tailwindcss-truncate-multiline --save

or

yarn add tailwindcss-truncate-multiline 

Usage

// tailwind.config.js
{
  theme: {
      truncate: {
          lines: {
              3: '3',
              5: '5',
              8: '8',
          }
      }
    
  plugins: [
    require('tailwindcss-truncate-multiline')(),
  ],
}

This plugin generates the following utilities:

.truncate-[key]-lines {
    'overflow': 'hidden',
    'display': '-webkit-box',
    '-webkit-line-clamp': [value],
    '-webkit-box-orient': 'vertical',
}

Variants:

You can also add variants:

//tailwind.config.js
{
    ...
    plugins: [
       require('tailwindcss-truncate-multiline')(['responsive', 'hover']), 
    ]
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].