Custom element that displays localized relative time (e.g. '4 days ago')
npm install @joinbox/relative-timeDisplays relative time (e.g. '3 days ago') in a custom element. Uses best guesses to decide what
unit (e.g. day, week etc.) to use.
element to get optimum semantics``html
`
#### Exposed Element
#### Attributes
- data-time (required): A time string that can be parsed by new Date()). Relative time will be calculated in data-locale` (optional): A BCP 47 language tag or an Intl.Locale instance (see documentation)
relation to the current time.
-