<div class='sourceset sourceset-common'>Common</div>

```kotlin
class Url(
        val url: String,
        override val styles: TextLinkStyles? = null,
        override val linkInteractionListener: LinkInteractionListener? = null,
    ) : LinkAnnotation()
```

An annotation that contains a [url](/jetpack-compose/androidx.compose.ui/ui-text/classes/LinkAnnotation.Url) string. When clicking on the text to which this
annotation is attached, the app will try to open the url using
[androidx.compose.ui.platform.UriHandler](/jetpack-compose/androidx.compose.ui/ui/interfaces/UriHandler). However, if [linkInteractionListener](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/LinkInteractionListener) is provided,
its [LinkInteractionListener.onClick](/jetpack-compose/androidx.compose.ui/ui-text/interfaces/LinkInteractionListener) method will be called instead and so you need to then
handle opening url manually (for example by calling
[androidx.compose.ui.platform.UriHandler](/jetpack-compose/androidx.compose.ui/ui/interfaces/UriHandler)).

## Functions

<h2 id="copy-url-styles-linkinteractionlistener">copy</h2>

```kotlin
fun copy(
            url: String = this.url,
            styles: TextLinkStyles? = this.styles,
            linkInteractionListener: LinkInteractionListener? = this.linkInteractionListener,
        ) = Url(url, styles, linkInteractionListener)
```

Returns a copy of this [Url](/jetpack-compose/androidx.compose.ui/ui-text/classes/LinkAnnotation.Url), optionally overriding some of the values.