Skip to content

About

Compose Multiplatform composable that auto-detects URLs, emails, phone numbers in text and makes them clickable.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

cmp-linked-text

JitPack Build Status Platform Kotlin License

Compose Multiplatform auto-linking text component with URL, email, and phone detection.

cmp-linked-text demo


⚡ Features

  • 🔗 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.

📦 Installation

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")
}

🚀 Usage

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
        )
    )
}

💖 Support the Project

If you find this project useful, consider supporting its active maintenance and future development:

Buy Me A Coffee GitHub Sponsors Patreon


📄 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Maintained with ❤️ by Govind Tank.

About

Compose Multiplatform composable that auto-detects URLs, emails, phone numbers in text and makes them clickable.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages