Open jawnothin opened 14 hours ago
When I use relative time, I'd like to be able to see the original time as well respecting the format that the non-relative time would have produced.
Add another prop to the component that would add a title attribute to the rendered component similar to this:
<NuxtTime :datetime="new Date()" relative title />
Which would an output like this
<time data-relative="true" datetime="2024-11-21T22:24:51.432Z" title="11/21/2024">15 hours ago</time>
I currently just manually setting the title tag, with the appropriate value.
No response
đ Your use case
When I use relative time, I'd like to be able to see the original time as well respecting the format that the non-relative time would have produced.
đ The solution you'd like
Add another prop to the component that would add a title attribute to the rendered component similar to this:
Which would an output like this
đ Alternatives you've considered
I currently just manually setting the title tag, with the appropriate value.
âšī¸ Additional info
No response