<h2 id="swipetorevealchip-primaryaction-revealstate-onfullswipe-modifier-secondaryaction-undoprimaryaction-undosecondaryaction-colors-shape-content">SwipeToRevealChip</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
@ExperimentalWearMaterialApi
@Composable
public fun SwipeToRevealChip(
    primaryAction: @Composable () -> Unit,
    revealState: RevealState,
    onFullSwipe: () -> Unit,
    modifier: Modifier = Modifier,
    secondaryAction: @Composable (() -> Unit)? = null,
    undoPrimaryAction: @Composable (() -> Unit)? = null,
    undoSecondaryAction: @Composable (() -> Unit)? = null,
    colors: SwipeToRevealActionColors = SwipeToRevealDefaults.actionColors(),
    shape: Shape = MaterialTheme.shapes.small,
    content: @Composable () -> Unit,
)
```

#### Parameters

| | |
| --- | --- |
| primaryAction | A composable to describe the primary action when swiping. The action will be triggered on clicking the action. See [SwipeToRevealPrimaryAction](/jetpack-compose/androidx.wear.compose/compose-material/components/SwipeToRevealPrimaryAction). |
| revealState | [RevealState](/jetpack-compose/androidx.wear.compose/compose-material/classes/RevealState) of the [SwipeToReveal](/jetpack-compose/androidx.wear.compose/compose-material3/components/SwipeToReveal) |
| onFullSwipe | A lambda which will be triggered on full swipe from either of the anchors. We recommend to keep this similar to primary action click action. This sets the [RevealState.lastActionType](/jetpack-compose/androidx.wear.compose/compose-material/classes/RevealState) to `RevealActionType.PrimaryAction`. |
| modifier | [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier) to be applied on the composable |
| secondaryAction | A composable to describe the contents of secondary action. The action will be triggered on clicking the action. See [SwipeToRevealSecondaryAction](/jetpack-compose/androidx.wear.compose/compose-material/components/SwipeToRevealSecondaryAction) |
| undoPrimaryAction | A composable to describe the contents of undo action when the primary action was triggered. See [SwipeToRevealUndoAction](/jetpack-compose/androidx.wear.compose/compose-material/components/SwipeToRevealUndoAction) |
| undoSecondaryAction | composable to describe the contents of undo action when secondary action was triggered. See [SwipeToRevealUndoAction](/jetpack-compose/androidx.wear.compose/compose-material/components/SwipeToRevealUndoAction) |
| colors | An instance of [SwipeToRevealActionColors](/jetpack-compose/androidx.wear.compose/compose-material/classes/SwipeToRevealActionColors) to describe the colors of actions. See `SwipeToRevealDefaults.actionColors`. |
| shape | The shape of primary and secondary action composables. Recommended shape for chips is [Shapes.small](/jetpack-compose/androidx.wear.compose/compose-material/classes/Shapes). |
| content | The initial content shown prior to the swipe-to-reveal gesture. Custom accessibility actions should always be added to the content using [androidx.compose.ui.semantics.semantics](/jetpack-compose/androidx.wear.compose/compose-foundation/functions/semantics) - examples are shown in the code samples. |