AnnotatedStringWithLinkSample
@Composable
fun AnnotatedStringWithLinkSample() {
// Display a link in the text
BasicText(
buildAnnotatedString {
append("Build better apps faster with ")
withLink(
LinkAnnotation.Url(
"https://developer.android.com/jetpack/compose",
TextLinkStyles(style = SpanStyle(color = Color.Blue)),
)
) {
append("Jetpack Compose")
}
}
)
}