# Dimension.Coercible

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


```
interface Dimension.Coercible : Dimension
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` that can be assigned both min and max bounds.

## Summary

| ### Extension functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MaxCoercible` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible#(androidx.constraintlayout.compose.Dimension.Coercible).atLeast(androidx.compose.ui.unit.Dp)(dp: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the lower bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to a fixed `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.constraintlayout.compose.Dimension.Coercible).atLeast(androidx.compose.ui.unit.Dp)` value. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MinCoercible` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible#(androidx.constraintlayout.compose.Dimension.Coercible).atMost(androidx.compose.ui.unit.Dp)(dp: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to a fixed `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.constraintlayout.compose.Dimension.Coercible).atMost(androidx.compose.ui.unit.Dp)` value. |

| ### Extension properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MaxCoercible` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible#(androidx.constraintlayout.compose.Dimension.Coercible).atLeastWrapContent()` Sets the lower bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to be the wrap content size of the child. |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.MinCoercible` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible.https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension.Coercible#(androidx.constraintlayout.compose.Dimension.Coercible).atMostWrapContent()` Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to be the wrap content size of the child. |

## Extension functions

### Dimension.Coercible.atLeast

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:atLeast)

```
fun Dimension.Coercible.atLeast(dp: Dp): Dimension.MaxCoercible
```

Sets the lower bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to a fixed `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.constraintlayout.compose.Dimension.Coercible).atLeast(androidx.compose.ui.unit.Dp)` value.

### Dimension.Coercible.atMost

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:atMost)

```
fun Dimension.Coercible.atMost(dp: Dp): Dimension.MinCoercible
```

Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to a fixed `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/package-summary#(androidx.constraintlayout.compose.Dimension.Coercible).atMost(androidx.compose.ui.unit.Dp)` value.

## Extension properties

### Dimension.Coercible.atLeastWrapContent

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

```
val Dimension.Coercible.atLeastWrapContent: Dimension.MaxCoercible
```

Sets the lower bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to be the wrap content size of the child.

### Dimension.Coercible.atMostWrapContent

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

```
val Dimension.Coercible.atMostWrapContent: Dimension.MinCoercible
```

Sets the upper bound of the current `https://developer.android.com/reference/kotlin/androidx/constraintlayout/compose/Dimension` to be the wrap content size of the child.