# PlacementModifierScope

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/Placement.kt+class:androidx.compose.foundation.style.PlacementModifierScope) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  class PlacementModifierScope
  ```

*** ** * ** ***

The scope to the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/placement.modifier#(androidx.compose.ui.Modifier).placement(kotlin.Function1)` callback in of the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/placement.modifier#(androidx.compose.ui.Modifier).placement(kotlin.Function1)` modifier.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#PlacementModifierScope()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#bottom()` Offsets the component vertically from its original calculated bottom position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Breadth` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#height()` Sets the preferred height of the component. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#left()` Offsets the component horizontally from its original calculated left position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxHeight()` Constrains the maximum height of the component. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxWidth()` Constrains the maximum width of the component. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minHeight()` Constrains the minimum height of the component. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minWidth()` Constrains the minimum width of the component. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#right()` Offsets the component horizontally from its original calculated right position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#top()` Offsets the component vertically from its original calculated top position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Breadth` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#width()` Sets the preferred width of the component. | Cmn |

## Public constructors

### PlacementModifierScope

Cmn Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
PlacementModifierScope()
```

## Public properties

### bottom

Cmn

```
var bottom: Dp
```

Offsets the component vertically from its original calculated bottom position. Positive values shift the component upwards (further from the bottom edge), negative downwards.

### height

Cmn Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
var height: Breadth
```

Sets the preferred height of the component. The actual size will also depend on the parent's constraints and other modifiers.

### left

Cmn

```
var left: Dp
```

Offsets the component horizontally from its original calculated left position. Positive values shift the component to the right, negative to the left.

### maxHeight

Cmn

```
var maxHeight: Dp
```

Constrains the maximum height of the component. The component's height, including padding, will be at most this value.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxHeight()` is negative it is treated as being `0.dp`.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#top()` and/or `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#bottom()` are specified, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxHeight()` is clamped to the remaining vertical space remaining in the constraints after the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#top()` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#bottom()` are removed.

### maxWidth

Cmn

```
var maxWidth: Dp
```

Constrains the maximum width of the component. The component's width, including padding, will be at most this value.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxWidth()` is negative it is treated as being `0.dp`.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#left()` and/or `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#right()` are specified, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxWidth()` is clamped to the remaining horizontal space remaining in the constraints after the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#left()` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#right()` are removed.

### minHeight

Cmn

```
var minHeight: Dp
```

Constrains the minimum height of the component. The component's height, including padding, will be at least this value.

If both `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minHeight()` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxHeight()` are specified and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minHeight()` is greater than `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minHeight()` will be clamped to `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxHeight()`.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#top()` and/or `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#bottom()` are specified, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minHeight()` is clamped to the remaining vertical space remaining in the constraints in the constraints after the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#top()` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#bottom()` are removed.

### minWidth

Cmn

```
var minWidth: Dp
```

Constrains the minimum width of the component. The component's width, including padding, will be at least this value.

If both `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minWidth()` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxWidth()` are specified and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minWidth()` is greater than `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#minWidth()` will be clamped to `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxWidth()`.

If `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#left()` and/or `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#right()` are specified, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#maxWidth()` is clamped to the remaining horizontal space remaining in the constraints after the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#left()` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/PlacementModifierScope#right()` are removed.

### right

Cmn

```
var right: Dp
```

Offsets the component horizontally from its original calculated right position. Positive values shift the component to the left (further from the right edge), negative to the right.

### top

Cmn

```
var top: Dp
```

Offsets the component vertically from its original calculated top position. Positive values shift the component downwards, negative upwards.

### width

Cmn Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01)

```
var width: Breadth
```

Sets the preferred width of the component. The actual size will also depend on the parent's constraints and other modifiers.