{"library":"vue-clamp","type":"library","category":null,"description":"vue-clamp is a collection of Vue 3 components engineered for precise text and content clamping, leveraging actual browser layout measurements rather than estimations. It offers several specialized primitives: `<LineClamp>` for multiline plain text with flexible ellipsis placement, `<RichLineClamp>` for clamping trusted inline HTML while preserving formatting, `<InlineClamp>` for single-line strings with fixed affixes, and `<WrapClamp>` for truncating collections of atomic items. The current stable version is 1.2.0. The library follows a minor release cadence, regularly introducing new features such as advanced ellipsis positioning and enhanced rich text support. A significant differentiator is its reliance on real-time DOM measurements, which ensures accurate truncation where simpler CSS-based methods might fail. It mandates Vue ^3.3.0 as a peer dependency.","language":"javascript","status":"active","version":"1.2.0","tags":["javascript","clamp","ellipsis","text-overflow","truncate","vue","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-clamp","imports":["import { LineClamp } from 'vue-clamp'","import { RichLineClamp } from 'vue-clamp'","import { InlineClamp } from 'vue-clamp'"]},{"cmd":"yarn add vue-clamp","imports":[]},{"cmd":"pnpm add vue-clamp","imports":[]}],"homepage":"https://vue-clamp.vercel.app/","github":"https://github.com/Justineo/vue-clamp","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-clamp","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-clamp/compatibility"}}