# ChainStyle

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


```
class ChainStyle
```

<br />

*** ** * ** ***

The style of a horizontal or vertical chain.

## Summary

| ### Public companion functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle#Packed(kotlin.Float)(bias: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` A chain style where the contained layouts are packed together and placed in the available space according to a given `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#Packed(kotlin.Float)`. |

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle#Packed()` A chain style where the contained layouts are packed together and placed to the center of the available space. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle#Spread()` A chain style that evenly distributes the contained layouts. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle#SpreadInside()` A chain style where the first and last layouts are affixed to the constraints on each end of the chain and the rest are evenly distributed. |

## Public companion functions

### Packed

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun Packed(bias: Float): ChainStyle
```

A chain style where the contained layouts are packed together and placed in the available space according to a given `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#Packed(kotlin.Float)`.

## Public companion properties

### Packed

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Packed: ChainStyle
```

A chain style where the contained layouts are packed together and placed to the center of the available space.

### Spread

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val Spread: ChainStyle
```

A chain style that evenly distributes the contained layouts.

### SpreadInside

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
val SpreadInside: ChainStyle
```

A chain style where the first and last layouts are affixed to the constraints on each end of the chain and the rest are evenly distributed.