# ConstraintSet

## Functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet.composable#ConstraintSet(kotlin.String,kotlin.String)( @https://javadoc.io/doc/org.jetbrains/annotations/latest/org/intellij/lang/annotations/Language.html(value = "json5") content: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, @https://javadoc.io/doc/org.jetbrains/annotations/latest/org/intellij/lang/annotations/Language.html(value = "json5") overrideVariables: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html? )` Parses `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintSet(kotlin.String,kotlin.String)` into a `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet.composable#ConstraintSet(kotlin.String,kotlin.String)` and sets the variables defined in the `Variables` block with the values of `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintSet(kotlin.String,kotlin.String)`. |

## Functions

### ConstraintSet

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/ConstraintLayout.kt+function:ConstraintSet) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
@Composable
fun ConstraintSet(
    @Language(value = "json5") content: String,
    @Language(value = "json5") overrideVariables: String? = null
): ConstraintSet
```

Parses `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintSet(kotlin.String,kotlin.String)` into a `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ConstraintSet.composable#ConstraintSet(kotlin.String,kotlin.String)` and sets the variables defined in the `Variables` block with the values of `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#ConstraintSet(kotlin.String,kotlin.String)`.

Eg:

For `Variables: { margin: { from: 'initialMargin', step: 10 } }`

overrideVariables = `"{ 'initialMargin' = 50 }"`

Will create a ConstraintSet where `initialMargin` is 50.