Press "Enter" to skip to content

Vue Directive Plugin for Text Truncate | v-clamp

V-clamp is a Vue directive plugin for the text truncation plugin that cuts out very long text and replaces it with an ellipsis.

vue truncate text, vue 3 truncate text, vue limit string length, v clamp vue, vuetify text truncate not working, vue snip

How to make use of it:


$ npm install @sparing-software/v-clamp

1. Basic configuration in Vue via global import plugin in main.js file:

import Clamp from '@sparing-software/v-clamp'


2. All you have to do is add a v-clamp directive to the element you want to override and specify the elevation or max elevation pattern properties.

  <p v-clamp class="text">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit.

  .text {
     max-height: 100px;

text truncate plugin for vue js, V-clamp Plugin/Github

See Demo And Download

Official Website(SparingSoftware): Click Here

This superior jQuery/javascript plugin is developed by SparingSoftware. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published.