# ChainStyle.Companion

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.Companion&ss=androidx/platform/frameworks/support)

# ChainStyle.Companion

*** ** * ** ***

Kotlin\|Java

<br />

```
object ChainStyle.Companion
```

<br />

*** ** * ** ***

## Summary

|                                           ### Public functions                                            |
|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ChainStyle](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle) | [Packed](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#Packed(kotlin.Float))`(bias: `[Float](https://kotlinlang.org/api/latest/jvm/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[bias](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#Packed(kotlin.Float)). |

|                                           ### Public properties                                           |
|-----------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ChainStyle](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle) | [Packed](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#Packed()) A chain style where the contained layouts are packed together and placed to the center of the available space.                                          |
| [ChainStyle](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle) | [Spread](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#Spread()) A chain style that evenly distributes the contained layouts.                                                                                            |
| [ChainStyle](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle) | [SpreadInside](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#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 functions

### Packed

```
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[bias](https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/ChainStyle.Companion#Packed(kotlin.Float)).

## Public properties

### Packed

```
val Packed: ChainStyle
```

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

### Spread

```
val Spread: ChainStyle
```

A chain style that evenly distributes the contained layouts.  

### SpreadInside

```
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.