Compose Multiplatform auto-linking text component with URL, email, and phone detection.
- 🔗 Automatic Link Detection: Detects HTTP/HTTPS URLs, emails, phone numbers, and @mentions.
- 📱 Cross-Platform Intent Launching: Opens system browser, mail client, or dialer on tap.
- 🎨 Fully Customizable Styling: Configure regular text style, link color, underlined states, and click callbacks.
- 🚀 Compose Multiplatform: Native integration for Android and iOS.
Add the JitPack repository and dependency to your build.gradle.kts:
repositories {
maven { url = uri("https://jitpack.io") }
}
dependencies {
implementation("com.github.govindtank:cmp-linked-text:1.0.0")
}import androidx.compose.runtime.*
import androidx.compose.ui.graphics.Color
import io.github.govindtank.linkedtext.LinkedText
import io.github.govindtank.linkedtext.LinkStyle
@Composable
fun ProfileBioScreen() {
LinkedText(
text = "Visit https://govindtank.github.io or reach out at contact@govindtank.dev! Call +1234567890.",
style = LinkStyle(
linkColor = Color(0xFF1976D2),
underline = true
)
)
}If you find this project useful, consider supporting its active maintenance and future development:
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Maintained with ❤️ by Govind Tank.