# layoutId

## Functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/layoutId.modifier#(androidx.compose.ui.Modifier).layoutId(kotlin.String,kotlin.String)(layoutId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, tag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Alternative to `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/layoutId.modifier#(androidx.compose.ui.Modifier).layoutId(kotlin.Any)` that enables the use of `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.compose.ui.Modifier).layoutId(kotlin.String,kotlin.String)`. |

## Functions

### Modifier.layoutId

Artifact: [androidx.constraintlayout:constraintlayout-compose](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/compose/ConstraintLayoutTag.kt+function:layoutId) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun Modifier.layoutId(layoutId: String, tag: String? = null): Modifier
```

Alternative to `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/layoutId.modifier#(androidx.compose.ui.Modifier).layoutId(kotlin.Any)` that enables the use of `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.compose.ui.Modifier).layoutId(kotlin.String,kotlin.String)`.

| Parameters |
|---|---|
| `layoutId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The unique Id string assigned to the Composable |
| `tag: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html? = null` | A string to represent a group of Composables that may be affected by a ConstraintLayout function. Eg: The `Variables` block in a JSON5 based `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` |