MCPcopy Index your code
hub / github.com/clampy-js/vue-clampy

github.com/clampy-js/vue-clampy @v1.0.6

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.6 ↗ · + Follow
31 symbols 63 edges 4 files 10 documented · 32%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

vue-clampy

Build Status GitHub issues GitHub license npm

Vue.js (2+) directive that clamps the content of an element by adding an ellipsis to it if the content inside is too long.

It uses @clampy-js/clampy library (a fork of Clamp.js) behind the scene to apply the ellipsis.

It automatically re-clamps itself when the element or the browser window change size.

Installation

You can install @clampy-js/vue-clampy using NPM or Yarn:

npm install @clampy-js/vue-clampy
yarn install @clampy-js/vue-clampy

Usage

<script>
import clampy from '@clampy-js/vue-clampy';
import Vue from 'vue';

Vue.use(clampy);

export default {
  name: 'app',
  directives: {
    clampy
  }
};
</script>
<template>


Long text to clamp here


</template>  

Options

You can also override default options globally:


Vue.use(clampy, {
  truncationChar: '✂️'
});

Core symbols most depended-on inside this repo

Shape

Function 31

Languages

TypeScript100%

Modules by API surface

vue-clampy.js21 symbols
src/directive.js9 symbols
src/index.js1 symbols

For agents

$ claude mcp add vue-clampy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page