LiveKit docs › Components › DisconnectButton

---

# DisconnectButton

The `DisconnectButton` is a basic html button with the added ability to disconnect from a LiveKit room. Normally this is the big red button that allows end users to leave the video or audio call.

## Import

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

```

## Usage

```tsx
<LiveKitRoom>
  <DisconnectButton>Leave room</DisconnectButton>
</LiveKitRoom>

```

## Properties

- **`stopTracks`** _(boolean)_ (optional): _(Optional)_

---

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

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