šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
DemoInstallSign in
Socket

vue3-text-clamp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-text-clamp

Vue3 component which allows you to ellipsis your multiline text.

0.1.2
latest
Source
npm
Version published
Weekly downloads
7.1K
-21.09%
Maintainers
1
Weekly downloads
Ā 
Created
Source

logo

Vue3 Text-Clamp

Vue3 component which allows you to ellipsis your multiline text, see more šŸ‘‰ homepage.

Features

  • Clamps text with max lines and/or max height. No need to specify line height.
  • Place elllipsis at the end/middle/start of the clamped text and customize elllipsis string.
  • Automatically updates upon layout change.
  • The clamped text can be expanded/collapsed.
  • Customizable and responsive content before/after clamped text.

Install and Usage

$ npm install --save vue3-text-clamp

↓ Full import

import { createApp } from 'vue';
import TextClamp from 'vue3-text-clamp';
import App from './App.vue';

createApp(App).use(TextClamp).mount('#app');

↓ Manually import

<template>
  <text-clamp text='hello world' :max-lines='2' />
</template>

<script lang='ts' setup>
import TextClamp from 'vue3-text-clamp';
</script>

License

MIT License (MIT). Please see License File for more information.

Keywords

text-clamp

FAQs

Package last updated on 23 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts