---
title: "LayoutBoundsHolder"
description: "An object which holds on to a (potentially) mutating [RelativeLayoutBounds] of a specific node.
This is meant to be used alongside the [layoutBounds] modifier and [onVisibilityChanged] modifier
in situations where you want to understand he visibility of a node with respect to a specific
viewport instead of with the window."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class LayoutBoundsHolder
```


An object which holds on to a (potentially) mutating `RelativeLayoutBounds` of a specific node.
This is meant to be used alongside the `layoutBounds` modifier and `onVisibilityChanged` modifier
in situations where you want to understand he visibility of a node with respect to a specific
viewport instead of with the window.


## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@get:FrequentlyChangingValue
var bounds: RelativeLayoutBounds?
```


The bounds of the node this holder is referencing. This is backed by
`androidx.compose.runtime.MutableState` and might change frequently, so reading it during
composition directly is discouraged.




