---
title: "bringIntoViewResponder"
description: "A parent that can respond to [BringIntoViewRequester] requests from its children, and adjust
itself so that the item is visible on screen. See [BringIntoViewResponder] for more details about
how this mechanism works."
type: "modifier"
---

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

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


> **Deprecated** Use BringIntoViewModifierNode instead

```kotlin
fun Modifier.bringIntoViewResponder(
    @Suppress("DEPRECATION") responder: BringIntoViewResponder
): Modifier
```


A parent that can respond to `BringIntoViewRequester` requests from its children, and adjust
itself so that the item is visible on screen. See `BringIntoViewResponder` for more details about
how this mechanism works.



## 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()
            )
        }
    }
}
```

