⏳ vue-timeago3
A super tiny timeago component for Vue.js 3
TypeScript support
The library was completely written in TypeScript, which brings a great support for Vue3' Composition API.
Performant
Thanks to Vue.js 3.0 the component is both super tiny and fast. So fast, that you won't even notice it.
date-fns v2.26
Thanks to date-fns you have the full control over everything, including the language and converter options.
Example Usage
Now was: less than 5 seconds ago
<template>
<span>
Now was: <timeago :datetime="date"/>
</span>
</template>
<script>
export default {
...
data() {
return {
date: new Date() // current Date
}
},
...
}
</script>