Closed shyakadavis closed 4 months ago
Hey โ thank you for the feedback and taking the time to open this issue. I'm working on a PR that will allow the title
attribute to be overridden.
Released in v0.9.0.
You can now specify a custom title
or omit it altogether by setting title={undefined}
.
<Time relative title="Custom title" />
Set the value to undefined
to omit the title
altogether.
<Time relative title={undefined} />
Hello, @metonym
Thank you very much for the release. It works splendidly.
I appreciate the help.
Be safe. ๐
Hello, ๐
First off, I really love the lib and use it often for its simplicity. ๐
From MDN, I understand the
title
attribute is basically a tooltip for representing advisory information related to the element it belongs to. In our case, thetime
element. (Thanks for making this semantic.)But here is my issue; I wanted to provide my own tooltip, but trying to override the rendered title doesn't seem to work.
I tried passing
null
and an empty string''
to thetitle
prop, but nothing seemed to work.The result, in my case, is repetitive information and I would like to avoid this:
Do you know of a way to:
I appreciate the help.