# remoteComponent

> Returns a [RemoteComponent] bound to the enclosing layout component.

## Code Examples

### RemoteComponentSample

```kotlin
@Sampled
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun RemoteComponentSample() {
    RemoteColumn(modifier = RemoteModifier.size(200.rdp).background(Color.LightGray.rc)) {
        val parentHeight = remoteComponent().height
        RemoteBox(
            modifier =
                RemoteModifier.fillMaxWidth()
                    .height((parentHeight * 0.5f).toRemoteDp())
                    .background(Color.Blue.rc)
        )
    }
}
```
