---
title: "UiComposable"
description: "An annotation that can be used to mark a composable function as being expected to be use in a
composable function that is also marked or inferred to be marked as a [UiComposable].

Using this annotation explicitly is rarely necessary as the Compose compiler plugin will infer
the necessary equivalent annotations automatically. See
[androidx.compose.runtime.ComposableTarget] for details."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

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


```kotlin
@ComposableTargetMarker(description = "UI Composable")
@Target(
    AnnotationTarget.FILE,
    AnnotationTarget.FUNCTION,
    AnnotationTarget.PROPERTY_GETTER,
    AnnotationTarget.TYPE,
    AnnotationTarget.TYPE_PARAMETER,
)
annotation class UiComposable()
```


An annotation that can be used to mark a composable function as being expected to be use in a
composable function that is also marked or inferred to be marked as a `UiComposable`.

Using this annotation explicitly is rarely necessary as the Compose compiler plugin will infer
the necessary equivalent annotations automatically. See
`androidx.compose.runtime.ComposableTarget` for details.



