Tooltip
data class Tooltip(val pos: Int, val above: Boolean = false, val strictSide: Boolean = false, val content: @Composable () -> Unit)
Describes a tooltip to show near a document position.
Parameters
pos
Document position where the tooltip is anchored.
above
If true, show the tooltip above the anchor; otherwise below.
strictSide
If true, don't flip the tooltip even if it goes off-screen.
content
The composable that renders the tooltip body.