AutoLinkText

fun AutoLinkText(text: String, modifier: Modifier = Modifier, style: TextStyle = TextStyle.Default, linkStyles: TextLinkStyles = DefaultTextLinkStyles, color: Color = Color.Unspecified, textAlign: TextAlign? = null, mentionName: (String) -> String?? = null, onMentionClick: (String) -> Unit? = null)(source)

A Text component that automatically detects and linkifies URLs, email addresses, and phone numbers.

When mentionName is supplied, @!<hex> mention tokens are additionally rendered as tappable text showing the current display name resolved live (the hex id is the only thing stored on the wire), invoking onMentionClick with the !<hex> id on tap.