Proper way to implement inline widget with popover content?

Reading through the docs I was unsure about the best way to implement popover content on top of an inline widget. In my use case I have a clickable button widget for bezier curves in CSS that opens a popover that allows the user to edit the curve by clicking and dragging control points. I’ve currently implemented it by adding a custom popover element that is absolutely positioned on top of the widget button and appears on click, but it feels a bit strange and I was wondering if there is a way to incorporate a tooltip to help with this?

The HTML color picker example is much more simple because the browser is in charge of rendering the popover color picker UI

Looks like showTooltip should be able to manage a tooltip like that too, yes.

1 Like