# hostAction

> Creates a [RemoteAction] that triggers a named action on the host.

## Code Examples

### HostActionSample

```kotlin
@Sampled
@Preview
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun HostActionSample() {
    RemoteBox(
        modifier =
            RemoteModifier.clip(RemoteRoundedCornerShape(12.rdp))
                .background(Color(0xFF1E88E5).rc)
                .clickable(hostAction(name = "open_details".rs))
                .padding(16.rdp),
        contentAlignment = RemoteAlignment.Center,
    ) {
        RemoteText(text = "Open Details".rs, color = Color.White.rc)
    }
}
```
