---
title: "bringIntoViewRequester"
description: "Modifier that can be used to send [bringIntoView][BringIntoViewRequester.bringIntoView] requests.

The following example uses a `bringIntoViewRequester` to bring an item into the parent bounds.
The example demonstrates how a composable can ask its parents to scroll so that the component
using this modifier is brought into the bounds of all its parents."
type: "modifier"
---

<div class='type'>Compose Modifier</div>

<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun Modifier.bringIntoViewRequester(bringIntoViewRequester: BringIntoViewRequester): Modifier
```


Modifier that can be used to send `bringIntoView` requests.

The following example uses a `bringIntoViewRequester` to bring an item into the parent bounds.
The example demonstrates how a composable can ask its parents to scroll so that the component
using this modifier is brought into the bounds of all its parents.

#### Parameters

| | |
| --- | --- |
| bringIntoViewRequester | An instance of `BringIntoViewRequester`. This hoisted object can be used to send `bringIntoView` requests to parents of the current composable. |




## Code Examples
### BringIntoViewSample
```kotlin
@Composable
fun BringIntoViewSample() {
    Row(Modifier.horizontalScroll(rememberScrollState())) {
        repeat(100) {
            val bringIntoViewRequester = remember { BringIntoViewRequester() }
            val coroutineScope = rememberCoroutineScope()
            Box(
                Modifier
                    // This associates the RelocationRequester with a Composable that wants to be
                    // brought into view.
                    .bringIntoViewRequester(bringIntoViewRequester)
                    .onFocusChanged {
                        if (it.isFocused) {
                            coroutineScope.launch {
                                // This sends a request to all parents that asks them to scroll so
                                // that this item is brought into view.
                                bringIntoViewRequester.bringIntoView()
                            }
                        }
                    }
                    .focusTarget()
            )
        }
    }
}
```

