sherwinshen / vue3-text-clamp

📄 Vue3 component which allows you to ellipsis your multiline text
https://sherwinshen.github.io/vue3-text-clamp
MIT License
39 stars 5 forks source link
component ellipsis-text text-clamp vue3

logo

Vue3 Text-Clamp

Vue3 component which allows you to ellipsis your multiline text, see more 👉 homepage.

Features

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>

Links

License

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