# combinedAction

> Creates an action that's a composite of multiple actions.

## Code Examples

### CombinedActionSample

```kotlin
@Sampled
@Preview
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun CombinedActionSample() {
    val isBookmarked = remember { MutableRemoteBoolean(false) }
    val nextState = !isBookmarked

    RemoteBox(
        modifier =
            RemoteModifier.clip(RemoteRoundedCornerShape(12.rdp))
                .background(isBookmarked.select(Color(0xFF2E7D32).rc, Color.DarkGray.rc))
                .clickable(
                    combinedAction(
                        valueChangeAction(isBookmarked, nextState),
                        hostAction(name = "bookmark_changed".rs, value = nextState),
                    )
                )
                .padding(16.rdp),
        contentAlignment = RemoteAlignment.Center,
    ) {
        RemoteText(
            text = isBookmarked.select("Bookmarked".rs, "Tap to Bookmark".rs),
            color = Color.White.rc,
        )
    }
}
```
