---
title: "placement"
description: "Declares a callback, [block], that allows controlling size and placement.The incoming measurement [Constraints] may override values provided by [block], forcing the content to be either smaller or larger."
type: "modifier"
lastmod: "2026-09-24"
---
## API Reference

### placement

> Source set: Common

```kotlin
public fun Modifier.placement(block: PlacementModifierScope.() -> Unit): Modifier
```

Declares a callback, `block`, that allows controlling size and placement.The incoming measurement
`Constraints` may override values provided by `block`, forcing the content to be either smaller
or larger.

#### Parameters

| | |
| --- | --- |
| block | called during layout to determine the size of blocks. This l |
