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.

Constructors

Link copied to clipboard
constructor(pos: Int, above: Boolean = false, strictSide: Boolean = false, content: @Composable () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val content: @Composable () -> Unit
Link copied to clipboard
val pos: Int
Link copied to clipboard