sherwinshen / vue3-text-clamp

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

Feature Request: set html tag for render/ #10

Open lna1989 opened 7 months ago

lna1989 commented 7 months ago

What is the problem? It is necessary to use not only

for rendering content, but also any other block element, for example h1-h6.

Example:

<text-clamp test="Hello world" :max-length="2" tag="h2"/>

What needs to be done? Implement the change of the div element that defaults to any other HTML element.