LiveKit docs › Hooks › useSwipe

---

# useSwipe

> ℹ️ **Note**
> 
> This feature is experimental and may change or be removed based on developer feedback and real-world usage.

Simple implementation to detect horizontal swipe actions. Accepts callbacks for on right and left swipes.

## Import

```typescript
import { useSwipe } from "@livekit/components-react";

```

## Usage

```tsx
 <div
      onTouchStart={onTouchStart}
      onTouchMove={onTouchMove}
      onTouchEnd={onTouchEnd}
    >

```

## Properties

- **`element`** _(React.RefObject<HTMLElement>)_: 

## Returns

```typescript
void

```

---

This document was rendered at 2026-06-07T11:32:18.318Z.
For the latest version of this document, see [https://docs.livekit.io/reference/components/react/hook/useswipe.md](https://docs.livekit.io/reference/components/react/hook/useswipe.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).