Package-level declarations

Functions

Link copied to clipboard
fun TileSchemaBuilderScope.Tooltip(id: String = randomId(), style: StyleSchemaBuilderScope.() -> Unit = {}, visibility: TileSchema.Visibility = visible(), searchableTerms: List<String>? = null, text: String, position: TooltipTileSchema.Position = tooltipPositionAbove(), spacing: Int? = null, showCaret: Boolean = false, maxWidth: Int? = null, shape: ShapeSchema? = null, contentColor: ColorSchema? = null, containerColor: ColorSchema? = null, events: EventSchemaBuilderScope.() -> Unit = {}, tiles: TileSchemaBuilderScope.() -> Unit)

Wraps tiles in a Material 3 plain tooltip showing text. The tooltip is driven entirely by the platform's own gestures (long press on touch, hover on pointer devices) — the server neither opens nor observes it. position places the tooltip relative to the anchor and spacing (dp) sets the gap from it, defaulting to Material's own spacing when null. showCaret toggles the little pointer arrow, and maxWidth, shape, contentColor and containerColor each override the corresponding Material default when non-null. style and visibility apply to the anchor, not to the tooltip surface, whose look is controlled by the fields above. Only plain tooltips are supported — there is no rich variant with a title and actions. Dispatches no triggers at all — wire events on the wrapped tiles instead.

Link copied to clipboard

Positions the tooltip above its anchor.

Link copied to clipboard

Positions the tooltip below its anchor.

Link copied to clipboard

Positions the tooltip to the trailing edge of its anchor (mirrored under RTL).

Link copied to clipboard

Positions the tooltip to the left of its anchor, regardless of layout direction.

Link copied to clipboard

Positions the tooltip to the right of its anchor, regardless of layout direction.

Link copied to clipboard

Positions the tooltip to the leading edge of its anchor (mirrored under RTL).