Vue directive to automatically add attribute title based on textContent of element
npm install vue-title-directive!demo
``bash`
npm install vue-title-directive
main.js
`js
import App from './App.vue'
import vTitle from 'vue-title-directive'
const app = createApp(App)
app.use(vTitle)
app.mount('#app')
`
Component
` Long texthtml`
## Arguments
|Argument|Description|Example|
|--------|-----------|-------|
|always|Title showed instantly. Default value|`v-title.always`|`
|overflow|Title showed only when content horizontally overflows container|v-title.overflow`|
` Short namehtml``
Using on Components is not recommended, since using of custom directives on components is not recommended in official vue guide. But if you have to use it on Component, be sure that component have only one root node.