---
title: "SwipeToRevealPrimaryAction"
description: "A composable which can be used for setting the primary action of material SwipeToRevealCard and SwipeToRevealChip."
type: "component"
lastmod: "2026-05-08T01:17:01.082182Z"
---
## API Reference

### SwipeToRevealPrimaryAction

> Source set: Android

```kotlin
@ExperimentalWearMaterialApi
@Composable
public fun SwipeToRevealPrimaryAction(
    revealState: RevealState,
    onClick: () -> Unit,
    icon: @Composable () -> Unit,
    label: @Composable () -> Unit,
    modifier: Modifier = Modifier,
    interactionSource: MutableInteractionSource? = null,
): Unit
```

#### Parameters

| | |
| --- | --- |
| revealState | The [RevealState](/jetpack-compose/androidx.wear.compose/compose-material/classes/RevealState) of the [SwipeToReveal](/jetpack-compose/androidx.wear.compose/compose-material3/components/SwipeToReveal) where this action is used. |
| onClick | A lambda which gets triggered when the action is clicked. |
| icon | The icon which will be displayed initially on the action |
| label | The label which will be displayed on the expanded action |
| modifier | [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) to be applied on the action |
| interactionSource | The [MutableInteractionSource](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/MutableInteractionSource) representing the stream of interactions with this action. |
