InfoTooltip

fun InfoTooltip(text: String, modifier: Modifier = Modifier, displayDurationMillis: Long?)

A small "i" glyph that shows text in a tooltip on hover, long-press, or keyboard focus. Use it next to a label whose meaning needs a short explanation.

Screen readers read text directly, so the explanation is not hidden behind the tooltip. The anchor reserves the Material minimum interactive size and shows a border when focused.

displayDurationMillis limits mouse-hover display time; null keeps the tooltip visible until the pointer leaves or it is dismissed. Keyboard focus keeps the explanation visible until focus leaves. Touch users can long-press to show it. A finite duration must be positive.