vue3-read-more
vue3-read-more is a simple plugin for vue.js
Demo & Examples
Check out our demo page to see the product in action!
Installation
npm install @lazgram/vue3-read-more --save
Usage
import ReadMore from '@lazgram/vue3-read-more'
Vue.use(ReadMore)
<template>
<read-more>Example test.</read-more>
</template>
API
Arguments
-
rows
- The number of lines displayed in the initial state. The default value is 4. -
moreText
- The text displayed on "Read more". The default value is "Read More" -
backgroundColor
- The background color of the page. The default value is #FFF.
License
This project is licensed under the MIT License.