I suspect Android doesn’t need a tooltip, but in d...
# compose-desktop
o
I suspect Android doesn’t need a tooltip, but in desktop it is very important. I couldn’t find one for desktop, how would I implement it? I think it should be a modifier, something like
Modifier.tooltip("Text")
for simple cases and then
Modifier.tooltip { … }
with Slot API for custom tooltips.
👍 4
a
Sounds good from an API perspective. It would end up being implemented using
Modifier.composed {}
and the
Popup
API, and might call for some tweaking of Popup itself to get the anchoring right as a modifier
Android does use tooltips too, both on ChromeOS and as a standard long press for toolbar buttons
☝️ 3
o
Do you mean you will implement it in main compose library? It’s not urgent to me in any way, so I can wait for some time 🙂
d
I'd like it soon though. 🙂
4
a
Probably, no ETA off the top of my head though. A turnkey tooltip API may or may not happen for 1.0, but I'd prefer if a variant on
Popup
that makes writing it straightforward was present for 1.0 at least.